diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2013-12-30 14:05:53 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2013-12-30 14:05:53 +0100 |
commit | c01678a3fa328e2f7b8f33bfe54733820802f7b7 (patch) | |
tree | 4a7c54c455636f1b5a8d3e8c180bf17554569965 /gui/dialogs/SettingsDialog.cpp | |
parent | 5a7fc1e123b73c7b9448fba43236d7e675cb6470 (diff) | |
download | MultiMC-c01678a3fa328e2f7b8f33bfe54733820802f7b7.tar MultiMC-c01678a3fa328e2f7b8f33bfe54733820802f7b7.tar.gz MultiMC-c01678a3fa328e2f7b8f33bfe54733820802f7b7.tar.lz MultiMC-c01678a3fa328e2f7b8f33bfe54733820802f7b7.tar.xz MultiMC-c01678a3fa328e2f7b8f33bfe54733820802f7b7.zip |
Don't use stuff that's new in 5.2 if we don't compile with that
Diffstat (limited to 'gui/dialogs/SettingsDialog.cpp')
-rw-r--r-- | gui/dialogs/SettingsDialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/dialogs/SettingsDialog.cpp b/gui/dialogs/SettingsDialog.cpp index 1ca0007c..2797fe4e 100644 --- a/gui/dialogs/SettingsDialog.cpp +++ b/gui/dialogs/SettingsDialog.cpp @@ -40,6 +40,10 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::Se ui->sortingModeGroup->setId(ui->sortByNameBtn, Sort_Name); ui->sortingModeGroup->setId(ui->sortLastLaunchedBtn, Sort_LastLaunch); +#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) + ui->jsonEditorTextBox->setClearButtonEnabled(true); +#endif + loadSettings(MMC->settings().get()); updateCheckboxStuff(); } |