mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-01 01:47:31 -04:00
Open previously opened databases in correct order
Databases are re-opened by traversing LastOpenedDatabases from front to back, i.e. the last element in the list will be the active tab. However, the most-recently used database is currently stored at the beginning of the list. This leads to the least-recently used database to be the ative tab on next startup. Previously, this has been fixed in4c76c97
by opening the databases in reversed order. This change was accidentally reverted in165d664
. Instead, change the order of LastOpenedDatabases itself, so no reversal on opening the databases is necessary. Resolves #1572
This commit is contained in:
parent
a5dc1964a9
commit
97a890e8a0
1 changed files with 2 additions and 2 deletions
|
@ -933,7 +933,7 @@ void MainWindow::setShortcut(QAction* action, QKeySequence::StandardKey standard
|
||||||
|
|
||||||
void MainWindow::rememberOpenDatabases(const QString& filePath)
|
void MainWindow::rememberOpenDatabases(const QString& filePath)
|
||||||
{
|
{
|
||||||
m_openDatabases.append(filePath);
|
m_openDatabases.prepend(filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::applySettingsChanges()
|
void MainWindow::applySettingsChanges()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue