From 279c5b212d4192e4ef55e6f412be4c7e23e64a28 Mon Sep 17 00:00:00 2001 From: Flavio Date: Thu, 13 Nov 2014 13:20:27 +0100 Subject: [PATCH] Fix directory name on Mac --- src/snapshotsettings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/snapshotsettings.cpp b/src/snapshotsettings.cpp index bfe5275..d9b31ae 100644 --- a/src/snapshotsettings.cpp +++ b/src/snapshotsettings.cpp @@ -84,6 +84,10 @@ QString SnapshotSettings::getCurrentLocation() { } QString SnapshotSettings::displayPath(const QString &path) { +#ifdef APP_MAC + return QDir(path).dirName(); +#endif + #if QT_VERSION >= 0x050000 QString home = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); #else -- 2.39.5