diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-12 11:04:12 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-12 11:04:12 +0200 |
commit | 19e2ba091396043f4271484863744379c97901ad (patch) | |
tree | 2ee92cb9a6e57fa59a6c69fbd0d20c29394b796f | |
parent | e2d5ba5b6f61b5a9e195dcc87b9ebe468f6c1f1c (diff) |
folder path things
-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); } |