From 19e2ba091396043f4271484863744379c97901ad Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Fri, 12 Jun 2015 11:04:12 +0200 Subject: folder path things --- mainwindow.cpp | 2 +- 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 { diff --git a/util.cpp b/util.cpp index 74c84c1e..4908b370 100644 --- a/util.cpp +++ b/util.cpp @@ -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); } -- cgit v1.2.3