Skip to content

Commit

Permalink
folder path things
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Jan Brouwer committed Jun 12, 2015
1 parent e2d5ba5 commit 19e2ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 19e2ba0

Please sign in to comment.