Update last databases on open and save as.

This commit is contained in:
Florian Geyer 2012-06-29 23:02:44 +02:00 committed by Felix Geyer
parent d2fc4e8abd
commit 9ae6d2cd05

View File

@ -113,6 +113,8 @@ void DatabaseTabWidget::openDatabase(const QString& fileName, const QString& pw,
insertDatabase(db, dbStruct);
updateLastDatabases(dbStruct.fileName);
if (!pw.isNull() || !keyFile.isEmpty()) {
dbStruct.dbWidget->switchToOpenDatabase(dbStruct.file, dbStruct.fileName, pw, keyFile);
}
@ -230,7 +232,6 @@ void DatabaseTabWidget::saveDatabase(Database* db)
dbStruct.modified = false;
updateTabName(db);
updateLastDatabases(dbStruct.fileName);
}
else {
saveDatabaseAs(db);