Skip to content

Commit

Permalink
Merge pull request #182 from MyHush/dev
Browse files Browse the repository at this point in the history
lock emoji button too
  • Loading branch information
DenioD authored Jul 29, 2020
2 parents 5e08b0f + 851289f commit 0ff3ddc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Chat/Chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label)
chat->appendRow(Items1);
ui->listChat->setModel(chat);
ui->memoTxtChat->setEnabled(true);
ui->emojiButton->setEnabled(true);
ui->sendChatButton->setEnabled(true);

}
else
Expand Down
9 changes: 8 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,8 @@ void MainWindow::setupTransactionsTab() {
void MainWindow::setupchatTab() {

ui->memoTxtChat->setEnabled(false);
ui->emojiButton->setEnabled(false);
ui->sendChatButton->setEnabled(false);

/////////////Setting Icons for Chattab and different themes

Expand Down Expand Up @@ -1471,6 +1473,8 @@ void MainWindow::setupchatTab() {
QObject::connect(ui->sendChatButton, &QPushButton::clicked, [&] () {

ui->memoTxtChat->setEnabled(false);
ui->emojiButton->setEnabled(false);


});
QObject::connect(ui->safeContactRequest, &QPushButton::clicked, this, &MainWindow::addContact);
Expand Down Expand Up @@ -1613,9 +1617,12 @@ void MainWindow::setupchatTab() {
ui->listContactWidget->addAction(HushAction);
ui->listContactWidget->addAction(editAction);
ui->listContactWidget->addAction(subatomicAction);

ui->memoTxtChat->setEnabled(false);
ui->emojiButton->setEnabled(false);
ui->sendChatButton->setEnabled(false);

QModelIndex index = ui->listContactWidget->currentIndex();
QModelIndex index = ui->listContactWidget->currentIndex();
QString label_contact = index.data(Qt::DisplayRole).toString();

for(auto &p : AddressBook::getInstance()->getAllAddressLabels())
Expand Down

0 comments on commit 0ff3ddc

Please sign in to comment.