Use /usr/bin as default on linux
This commit is contained in:
parent
3380bc7563
commit
5a7fc1e123
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user