diff options
-rw-r--r-- | mainwindow.cpp | 2 | ||||
-rw-r--r-- | util.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index a2b3e32a..dd06ba86 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -64,7 +64,7 @@ MainWindow::~MainWindow() QSettings &MainWindow::getSettings() { if (!settings) { - QString portable_ini = QCoreApplication::applicationDirPath() + "/qtpass.ini"; + QString portable_ini = QCoreApplication::applicationDirPath() + QDir::separator() + "qtpass.ini"; if (QFile(portable_ini).exists()) { settings.reset(new QSettings(portable_ini, QSettings::IniFormat)); } else { @@ -42,7 +42,7 @@ QString Util::findPasswordStore() if (_env.contains("PASSWORD_STORE_DIR")) { path = _env.value("PASSWORD_STORE_DIR"); } else { - path = QDir::homePath()+"/.password-store/"; + path = QDir::homePath() + QDir::separator() + ".password-store" + QDir::separator(); } return Util::normalizeFolderPath(path); } |