From 5a7fc1e123b73c7b9448fba43236d7e675cb6470 Mon Sep 17 00:00:00 2001 From: Jan Dalheimer Date: Mon, 30 Dec 2013 13:00:55 +0100 Subject: Use /usr/bin as default on linux --- gui/dialogs/SettingsDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/dialogs') 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); -- cgit v1.2.3