Activate attach menu item right after opening a database

The 'attach database' menu item was only activated after making changes
to the database and saving them. With this commit it's activated right
after opening a database, too.
This commit is contained in:
Martin Kleusberg
2017-08-15 11:11:42 +02:00
parent 778eaec72e
commit d1f90994fb

View File

@@ -1416,6 +1416,7 @@ void MainWindow::setCurrentFile(const QString &fileName)
setWindowFilePath(fileName);
setWindowTitle(QApplication::applicationName() + " - " + QDir::toNativeSeparators(fileName));
activateFields(true);
dbState(db.getDirty());
}
void MainWindow::addToRecentFilesMenu(const QString& filename)