+
+#ifdef APP_MAC
+ QFileDialog* dialog = new QFileDialog(this);
+ dialog->setFileMode(QFileDialog::Directory);
+ dialog->setOptions(QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks | QFileDialog::ReadOnly);
+ dialog->setDirectory(QDesktopServices::storageLocation(QDesktopServices::HomeLocation));
+ dialog->open(this, SLOT(folderChosen(const QString &)));
+#else
+ QString folder = QFileDialog::getExistingDirectory(window(), tr("Choose the download location"),