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