QT5 fix
authorCryptoManiac <balthazar@yandex.ru>
Wed, 23 Mar 2016 22:56:04 +0000 (01:56 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Wed, 23 Mar 2016 22:56:04 +0000 (01:56 +0300)
src/qt/optionsdialog.cpp

index 63b5c7d..adb6ffb 100644 (file)
@@ -359,7 +359,7 @@ void OptionsDialog::on_chooseSeeder_clicked()
 #if QT_VERSION < 0x050000
     QString openDir = QDesktopServices::storageLocation(QDesktopServices::ApplicationsLocation);
 #else
-    QString openDir = QStandardPaths::ApplicationsLocation(QStandardPaths::ApplicationsLocation);
+    QString openDir = QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);
 #endif
 
     QString filename = QFileDialog::getOpenFileName(this, tr("Choose peer collector application"), openDir, tr("Applications (*.*)"));