Rename config key for last opened databases.

This commit is contained in:
Florian Geyer 2013-04-27 11:19:40 +02:00
parent bbf183bef7
commit 94ac9c9ea1
2 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
if (openPreviousDatabasesOnStartup) {
disconnect(m_ui->tabWidget, SIGNAL(databaseWithFileClosed(QString)), this, SLOT(rememberOpenDatabases(QString)));
config()->set("OpenDatabasesOnExit", openDatabases);
config()->set("LastOpenedDatabases", openDatabases);
}
}

View File

@ -59,7 +59,7 @@ int main(int argc, char** argv)
}
if (config()->get("OpenPreviousDatabasesOnStartup").toBool()) {
QStringList filenames = config()->get("OpenDatabasesOnExit").toStringList();
QStringList filenames = config()->get("LastOpenedDatabases").toStringList();
Q_FOREACH (const QString& filename, filenames) {
if (!filename.isEmpty() && QFile::exists(filename)) {
mainWindow.openDatabase(filename, QString(), QString());