mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-19 12:24:41 -04:00
Use QStandardPaths::DataLocation instead of AppDataLocation.
AppDataLocation is only available in Qt >= 5.4.
This commit is contained in:
parent
2e23fb203a
commit
3dd98deecc
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ Config::Config(QObject* parent)
|
||||||
|
|
||||||
userPath += "/keepassx/";
|
userPath += "/keepassx/";
|
||||||
#else
|
#else
|
||||||
userPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
|
userPath = QDir::fromNativeSeparators(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
|
||||||
// storageLocation() appends the application name ("/keepassx") to the end
|
// storageLocation() appends the application name ("/keepassx") to the end
|
||||||
userPath += "/";
|
userPath += "/";
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -37,7 +37,7 @@ int main(int argc, char** argv)
|
||||||
Application::setApplicationName("keepassx");
|
Application::setApplicationName("keepassx");
|
||||||
Application::setApplicationVersion(KEEPASSX_VERSION);
|
Application::setApplicationVersion(KEEPASSX_VERSION);
|
||||||
// don't set organizationName as that changes the return value of
|
// don't set organizationName as that changes the return value of
|
||||||
// QStandardPaths::writableLocation(QDesktopServices::AppDataLocation)
|
// QStandardPaths::writableLocation(QDesktopServices::DataLocation)
|
||||||
|
|
||||||
QApplication::setQuitOnLastWindowClosed(false);
|
QApplication::setQuitOnLastWindowClosed(false);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue