]> git.sur5r.net Git - minitube/commitdiff
Fix directory name on Mac
authorFlavio <flavio.tordini@gmail.com>
Thu, 13 Nov 2014 12:20:27 +0000 (13:20 +0100)
committerFlavio <flavio.tordini@gmail.com>
Thu, 13 Nov 2014 12:20:27 +0000 (13:20 +0100)
src/snapshotsettings.cpp

index bfe5275718665f9b6a005531fd9a58a6a907a923..d9b31ae74caa8c0a86f3ebc8e599b8952cea0c69 100644 (file)
@@ -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