#ifdef APP_MAC
#include "macutils.h"
#endif
+#include "constants.h"
SnapshotSettings::SnapshotSettings(QWidget *parent) : QWidget(parent) {
QBoxLayout *layout = new QHBoxLayout(this);
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);
}
location = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);
#else
location = QDesktopServices::storageLocation(QDesktopServices::PicturesLocation);
+#endif
+#ifdef APP_MAC_STORE
+ location += "/MinitubeforYouTube";
#endif
}
return location;
}
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