mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Rename config key for last opened databases.
This commit is contained in:
parent
bbf183bef7
commit
94ac9c9ea1
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user