diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-21 20:13:12 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-21 20:13:12 +0100 |
commit | a354e8bfae812b23b85b65c4a5b7e860cb18080c (patch) | |
tree | c17a45f4104bcc62cf1565bba06b79ed599ed8b0 /gui/dialogs | |
parent | 16d378687c24f9572b70c96ffd81e4b7f710777b (diff) | |
download | MultiMC-a354e8bfae812b23b85b65c4a5b7e860cb18080c.tar MultiMC-a354e8bfae812b23b85b65c4a5b7e860cb18080c.tar.gz MultiMC-a354e8bfae812b23b85b65c4a5b7e860cb18080c.tar.lz MultiMC-a354e8bfae812b23b85b65c4a5b7e860cb18080c.tar.xz MultiMC-a354e8bfae812b23b85b65c4a5b7e860cb18080c.zip |
Fix MCEdit on OSX
Diffstat (limited to 'gui/dialogs')
-rw-r--r-- | gui/dialogs/SettingsDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/dialogs/SettingsDialog.cpp b/gui/dialogs/SettingsDialog.cpp index fd67b22f..d79bb558 100644 --- a/gui/dialogs/SettingsDialog.cpp +++ b/gui/dialogs/SettingsDialog.cpp @@ -623,7 +623,12 @@ void SettingsDialog::on_mceditPathBtn_clicked() QString error; do { +#ifdef Q_OS_OSX +#warning stuff + raw_dir = QFileDialog::getOpenFileName(this, tr("MCEdit Application"), raw_dir); +#else raw_dir = QFileDialog::getExistingDirectory(this, tr("MCEdit Directory"), raw_dir); +#endif if (raw_dir.isEmpty()) { break; |