]> git.sur5r.net Git - minitube/blobdiff - src/downloadsettings.cpp
Upload 3.9.3-2 to unstable
[minitube] / src / downloadsettings.cpp
index e283867586216fb7cc270e8b57c2a7fd24df897f..c8b9d6c01a621cb93cea2b20d7cfc6ada1c69efd 100644 (file)
@@ -21,7 +21,6 @@ $END_LICENSE */
 #include "downloadsettings.h"
 #include "downloadmanager.h"
 #include "mainwindow.h"
-#include "compatibility/pathsservice.h"
 
 DownloadSettings::DownloadSettings(QWidget *parent) : QWidget(parent) {
 
@@ -57,7 +56,7 @@ void DownloadSettings::paintEvent(QPaintEvent * /*event*/) {
 }
 
 void DownloadSettings::changeFolder() {
-    const QString path = Paths::getHomeLocation();
+    const QString path = QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
 #ifdef APP_MAC
     QFileDialog* dialog = new QFileDialog(this);
     dialog->setFileMode(QFileDialog::Directory);
@@ -87,7 +86,7 @@ void DownloadSettings::folderChosen(const QString &dir) {
 
 void DownloadSettings::updateMessage() {
     const QString path = DownloadManager::instance()->currentDownloadFolder();
-    const QString home = Paths::getHomeLocation();
+    const QString home = QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
     QString displayPath = path;
     displayPath = displayPath.remove(home + "/");
     message->setText(