mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-30 09:46:30 -05:00
parent
f0985ff9d9
commit
6f92188323
@ -58,5 +58,14 @@ int main(int argc, char** argv)
|
||||
mainWindow.openDatabase(filename, argumentMap.value("password"), QString());
|
||||
}
|
||||
|
||||
if (config()->get("OpenPreviousDatabasesOnStartup").toBool()) {
|
||||
QStringList filenames = config()->get("OpenDatabasesOnExit").toStringList();
|
||||
Q_FOREACH (const QString& filename, filenames) {
|
||||
if (!filename.isEmpty() && QFile::exists(filename)) {
|
||||
mainWindow.openDatabase(filename, argumentMap.value("password"), QString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user