From: Flavio Tordini Date: Tue, 7 Apr 2015 19:37:47 +0000 (+0200) Subject: Mac App Store compatibility X-Git-Tag: 2.4~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a1b5c9749c95b1aca14bc6a335c9a6e6c3516e2;p=minitube Mac App Store compatibility --- 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;