Use /usr/bin as default on linux

This commit is contained in:
Jan Dalheimer 2013-12-30 13:00:55 +01:00
parent 3380bc7563
commit 5a7fc1e123

View File

@ -130,7 +130,11 @@ void SettingsDialog::on_jsonEditorBrowseBtn_clicked()
QString raw_file = QFileDialog::getOpenFileName( QString raw_file = QFileDialog::getOpenFileName(
this, tr("JSON Editor"), this, tr("JSON Editor"),
ui->jsonEditorTextBox->text().isEmpty() ui->jsonEditorTextBox->text().isEmpty()
#if defined(Q_OS_LINUX)
? QString("/usr/bin")
#else
? QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation).first() ? QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation).first()
#endif
: ui->jsonEditorTextBox->text()); : ui->jsonEditorTextBox->text());
QString cooked_file = NormalizePath(raw_file); QString cooked_file = NormalizePath(raw_file);