Disallow chat input when no contact is selected #137
This commit is contained in:
@@ -1344,6 +1344,8 @@ void MainWindow::setupTransactionsTab() {
|
||||
|
||||
void MainWindow::setupchatTab() {
|
||||
|
||||
ui->memoTxtChat->setEnabled(false);
|
||||
|
||||
/////////////Setting Icons for Chattab and different themes
|
||||
|
||||
auto theme = Settings::getInstance()->get_theme_name();
|
||||
@@ -1530,6 +1532,7 @@ void MainWindow::setupchatTab() {
|
||||
ui->listContactWidget->addAction(HushAction);
|
||||
ui->listContactWidget->addAction(requestHushAction);
|
||||
ui->listContactWidget->addAction(subatomicAction);
|
||||
ui->memoTxtChat->setEnabled(true);
|
||||
|
||||
/*QObject::connect(requestHushAction, &QAction::triggered, [=]() {
|
||||
QModelIndex index = ui->listContactWidget->currentIndex();
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
<number>5</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
|
||||
Reference in New Issue
Block a user