mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-02 23:02:41 -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
+2
-1
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <QCommandLineParser>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QWindow>
|
||||
|
||||
@@ -180,7 +181,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
if (!filename.isEmpty() && QFile::exists(filename) && !filename.endsWith(".json", Qt::CaseInsensitive)) {
|
||||
mainWindow.openDatabase(filename, password, parser.value(keyfileOption));
|
||||
mainWindow.openDatabase(QDir::toNativeSeparators(filename), password, parser.value(keyfileOption));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user