Enable buttons for editing/deleting tables and similar on first click

When opening a database and clicking on a table in the Database
Structure tab, the buttons for modifying or deleting the table were
still disabled. Only on the second click activated the buttons
correctly.

See issue #2528.
This commit is contained in:
Martin Kleusberg
2021-01-22 14:56:26 +01:00
parent 367665e7f5
commit b3d30cad4b
+1 -1
View File
@@ -430,7 +430,7 @@ void MainWindow::init()
connect(editDock, &EditDialog::recordTextUpdated, this, &MainWindow::updateRecordText);
connect(editDock, &EditDialog::evaluateText, this, &MainWindow::evaluateText);
connect(editDock, &EditDialog::requestUrlOrFileOpen, this, &MainWindow::openUrlOrFile);
connect(ui->dbTreeWidget->selectionModel(), &QItemSelectionModel::currentChanged, this, &MainWindow::changeTreeSelection);
connect(ui->dbTreeWidget->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MainWindow::changeTreeSelection);
connect(ui->dockEdit, &QDockWidget::visibilityChanged, this, &MainWindow::toggleEditDock);
connect(remoteDock, SIGNAL(openFile(QString)), this, SLOT(fileOpen(QString)));
connect(ui->actionDropQualifiedCheck, &QAction::toggled, dbStructureModel, &DbStructureModel::setDropQualifiedNames);