summaryrefslogtreecommitdiffstats
path: root/util.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-06-15 20:30:04 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2015-06-15 20:30:04 +0200
commite5f845e663fd11fee280bd036eafc0aaf5a9fdae (patch)
treee218159939c9f3aed6adf88cbf02da479df5319c /util.cpp
parentbfd9948be560a41dfc7b916442fb137c8b23ac55 (diff)
win folder end and \ both ckecked again after https://github.com/IJHack/qtpass/issues/53
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.cpp b/util.cpp
index 4908b370..a140613c 100644
--- a/util.cpp
+++ b/util.cpp
@@ -53,7 +53,7 @@ QString Util::findPasswordStore()
* @return
*/
QString Util::normalizeFolderPath(QString path) {
- if (!path.endsWith(QDir::separator())) {
+ if (!path.endsWith("/") && !path.endsWith(QDir::separator())) {
path += QDir::separator();
}
return path;