]> git.sur5r.net Git - minitube/commitdiff
Mac App Store compatibility
authorFlavio Tordini <flavio.tordini@gmail.com>
Tue, 7 Apr 2015 19:37:47 +0000 (21:37 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Tue, 7 Apr 2015 19:37:47 +0000 (21:37 +0200)
src/snapshotsettings.cpp

index d9b31ae74caa8c0a86f3ebc8e599b8952cea0c69..116286b123aa3c9a662d70e8a65d0cfe898c4c52 100644 (file)
@@ -24,6 +24,7 @@ $END_LICENSE */
 #ifdef APP_MAC
 #include "macutils.h"
 #endif
+#include "constants.h"
 
 SnapshotSettings::SnapshotSettings(QWidget *parent) : QWidget(parent) {
     QBoxLayout *layout = new QHBoxLayout(this);
@@ -60,8 +61,8 @@ void SnapshotSettings::setSnapshot(const QPixmap &pixmap, const QString &filenam
     QString display = displayPath(path);
 
     QString msg = tr("Snapshot saved to %1")
-                .arg("<a href='showFile' style='text-decoration:none; color:palette(text); font-weight:bold'>%1</a>")
-                .arg(display);
+            .arg("<a href='showFile' style='text-decoration:none; color:palette(text); font-weight:bold'>%1</a>")
+            .arg(display);
     message->setText(msg);
 }
 
@@ -78,6 +79,9 @@ QString SnapshotSettings::getCurrentLocation() {
         location = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);
 #else
         location = QDesktopServices::storageLocation(QDesktopServices::PicturesLocation);
+#endif
+#ifdef APP_MAC_STORE
+        location += "/MinitubeforYouTube";
 #endif
     }
     return location;