mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Don't enable the Attach Database button if there is no DB open
This commit is contained in:
@@ -1283,12 +1283,11 @@ void MainWindow::exportTableToJson()
|
||||
dialog.exec();
|
||||
}
|
||||
|
||||
void MainWindow::dbState( bool dirty )
|
||||
void MainWindow::dbState(bool dirty)
|
||||
{
|
||||
ui->fileSaveAction->setEnabled(dirty);
|
||||
ui->fileRevertAction->setEnabled(dirty);
|
||||
ui->fileAttachAction->setEnabled(!dirty);
|
||||
//ui->actionEncryption->setEnabled(!dirty);
|
||||
ui->fileAttachAction->setEnabled(db.isOpen() && !dirty);
|
||||
}
|
||||
|
||||
void MainWindow::fileSave()
|
||||
|
||||
Reference in New Issue
Block a user