mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 03:46:49 -08:00
Normalize path (slashes to be precise) when opening a database or saving the last used database paths (#7864)
Fixes #7821
This commit is contained in:
1 parent
5916a8f8dd
commit
dda70e1453
2 files changed
+4
-2
No files matched your search
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QDesktopServices>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QList>
|
||||
#include <QMimeData>
|
||||
@@ -1388,7 +1389,7 @@ bool MainWindow::saveLastDatabases()
|
||||
QStringList openDatabases;
|
||||
for (int i = 0; i < m_ui->tabWidget->count(); ++i) {
|
||||
auto dbWidget = m_ui->tabWidget->databaseWidgetFromIndex(i);
|
||||
openDatabases.append(dbWidget->database()->filePath());
|
||||
openDatabases.append(QDir::toNativeSeparators(dbWidget->database()->filePath()));
|
||||
}
|
||||
|
||||
config()->set(Config::LastOpenedDatabases, openDatabases);
|
||||
|
||||
Reference in new issue
Block a user