summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMario Schlegel <m.schlegel@posteo.de>2018-11-04 10:18:18 +0100
committerMario Schlegel <m.schlegel@posteo.de>2018-11-04 10:18:18 +0100
commit37723cbb627a0f4bb2f11f870145d3ad3bfcd73c (patch)
treef6ad71fd525f64e277fbc8518014a2172c12154c /src
parent8d7caa4c1c875859120c4cea79bc24ca015df2d1 (diff)
PassStore path has to be normalized
Without this some string/path comparisons on windows (e.g. in Pass::getRecipientList) would fail.
Diffstat (limited to 'src')
-rw-r--r--src/qtpasssettings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qtpasssettings.cpp b/src/qtpasssettings.cpp
index fadb37fc..a2c40a2f 100644
--- a/src/qtpasssettings.cpp
+++ b/src/qtpasssettings.cpp
@@ -256,6 +256,9 @@ QString QtPassSettings::getPassStore(const QString &defaultValue) {
->value(SettingsConstants::passStore, defaultValue)
.toString();
+ // Normalize the path string
+ returnValue = QDir(returnValue).absolutePath();
+
// ensure directory exists if never used pass or misconfigured.
// otherwise process->setWorkingDirectory(passStore); will fail on execution.
if (!QDir(returnValue).exists()) {