From 7a1b5c9749c95b1aca14bc6a335c9a6e6c3516e2 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 7 Apr 2015 21:37:47 +0200 Subject: [PATCH] Mac App Store compatibility --- src/snapshotsettings.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/snapshotsettings.cpp b/src/snapshotsettings.cpp index d9b31ae..116286b 100644 --- a/src/snapshotsettings.cpp +++ b/src/snapshotsettings.cpp @@ -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("%1") - .arg(display); + .arg("%1") + .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; -- 2.39.5