From: Flavio Date: Thu, 13 Nov 2014 12:20:27 +0000 (+0100) Subject: Fix directory name on Mac X-Git-Tag: 2.3.1~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=279c5b212d4192e4ef55e6f412be4c7e23e64a28;p=minitube Fix directory name on Mac --- 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