diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-02 01:16:41 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-02 01:16:41 +0100 |
commit | a9c0d812a67c7d044a1148523198cc37ad24db8c (patch) | |
tree | a8ba56bc2a24a06bbcd8337f8da69c3fa7c196b4 | |
parent | b6b2350e027d127049c61d8e01dc5416ac5c037b (diff) | |
download | MultiMC-a9c0d812a67c7d044a1148523198cc37ad24db8c.tar MultiMC-a9c0d812a67c7d044a1148523198cc37ad24db8c.tar.gz MultiMC-a9c0d812a67c7d044a1148523198cc37ad24db8c.tar.lz MultiMC-a9c0d812a67c7d044a1148523198cc37ad24db8c.tar.xz MultiMC-a9c0d812a67c7d044a1148523198cc37ad24db8c.zip |
NOISSUE prefer shell script for running MCEdit on linux
-rw-r--r-- | api/logic/tools/MCEditTool.cpp | 8 | ||||
-rw-r--r-- | application/pages/WorldListPage.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/api/logic/tools/MCEditTool.cpp b/api/logic/tools/MCEditTool.cpp index f3d550d0..8e0d7ae2 100644 --- a/api/logic/tools/MCEditTool.cpp +++ b/api/logic/tools/MCEditTool.cpp @@ -62,13 +62,13 @@ void MCEditTool::runImpl() QDir mceditDir(mceditPath); QString program; #ifdef Q_OS_LINUX - if (mceditDir.exists("mcedit.py")) + if (mceditDir.exists("mcedit.sh")) { - program = mceditDir.absoluteFilePath("mcedit.py"); + program = mceditDir.absoluteFilePath("mcedit.sh"); } - else if (mceditDir.exists("mcedit.sh")) + else if (mceditDir.exists("mcedit.py")) { - program = mceditDir.absoluteFilePath("mcedit.sh"); + program = mceditDir.absoluteFilePath("mcedit.py"); } #elif defined(Q_OS_WIN32) if (mceditDir.exists("mcedit.exe")) diff --git a/application/pages/WorldListPage.cpp b/application/pages/WorldListPage.cpp index befb6b5e..fcef716b 100644 --- a/application/pages/WorldListPage.cpp +++ b/application/pages/WorldListPage.cpp @@ -172,13 +172,13 @@ void WorldListPage::on_mcEditBtn_clicked() QDir mceditDir(mceditPath); QString program; #ifdef Q_OS_LINUX - if (mceditDir.exists("mcedit.py")) + if (mceditDir.exists("mcedit.sh")) { - program = mceditDir.absoluteFilePath("mcedit.py"); + program = mceditDir.absoluteFilePath("mcedit.sh"); } - else if (mceditDir.exists("mcedit.sh")) + else if (mceditDir.exists("mcedit.py")) { - program = mceditDir.absoluteFilePath("mcedit.sh"); + program = mceditDir.absoluteFilePath("mcedit.py"); } #elif defined(Q_OS_WIN32) if (mceditDir.exists("mcedit.exe")) |