summaryrefslogtreecommitdiffstats
path: root/gui/dialogs
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2013-12-30 13:00:55 +0100
committerJan Dalheimer <jan@dalheimer.de>2013-12-30 13:00:55 +0100
commit5a7fc1e123b73c7b9448fba43236d7e675cb6470 (patch)
treef34145fa7732dcdb1cd8be7f7273423c30f6468b /gui/dialogs
parent3380bc75633c63e8569b76981ac29528c58943ce (diff)
downloadMultiMC-5a7fc1e123b73c7b9448fba43236d7e675cb6470.tar
MultiMC-5a7fc1e123b73c7b9448fba43236d7e675cb6470.tar.gz
MultiMC-5a7fc1e123b73c7b9448fba43236d7e675cb6470.tar.lz
MultiMC-5a7fc1e123b73c7b9448fba43236d7e675cb6470.tar.xz
MultiMC-5a7fc1e123b73c7b9448fba43236d7e675cb6470.zip
Use /usr/bin as default on linux
Diffstat (limited to 'gui/dialogs')
-rw-r--r--gui/dialogs/SettingsDialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/dialogs/SettingsDialog.cpp b/gui/dialogs/SettingsDialog.cpp
index a95a8e83..1ca0007c 100644
--- a/gui/dialogs/SettingsDialog.cpp
+++ b/gui/dialogs/SettingsDialog.cpp
@@ -130,7 +130,11 @@ void SettingsDialog::on_jsonEditorBrowseBtn_clicked()
QString raw_file = QFileDialog::getOpenFileName(
this, tr("JSON Editor"),
ui->jsonEditorTextBox->text().isEmpty()
+ #if defined(Q_OS_LINUX)
+ ? QString("/usr/bin")
+ #else
? QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation).first()
+ #endif
: ui->jsonEditorTextBox->text());
QString cooked_file = NormalizePath(raw_file);