From a9c0d812a67c7d044a1148523198cc37ad24db8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 2 Nov 2016 01:16:41 +0100 Subject: [PATCH] NOISSUE prefer shell script for running MCEdit on linux --- api/logic/tools/MCEditTool.cpp | 10 +++++----- application/pages/WorldListPage.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 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,14 +62,14 @@ void MCEditTool::runImpl() QDir mceditDir(mceditPath); QString program; #ifdef Q_OS_LINUX - if (mceditDir.exists("mcedit.py")) - { - program = mceditDir.absoluteFilePath("mcedit.py"); - } - else if (mceditDir.exists("mcedit.sh")) + if (mceditDir.exists("mcedit.sh")) { program = mceditDir.absoluteFilePath("mcedit.sh"); } + else if (mceditDir.exists("mcedit.py")) + { + 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,14 +172,14 @@ void WorldListPage::on_mcEditBtn_clicked() QDir mceditDir(mceditPath); QString program; #ifdef Q_OS_LINUX - if (mceditDir.exists("mcedit.py")) - { - program = mceditDir.absoluteFilePath("mcedit.py"); - } - else if (mceditDir.exists("mcedit.sh")) + if (mceditDir.exists("mcedit.sh")) { program = mceditDir.absoluteFilePath("mcedit.sh"); } + else if (mceditDir.exists("mcedit.py")) + { + program = mceditDir.absoluteFilePath("mcedit.py"); + } #elif defined(Q_OS_WIN32) if (mceditDir.exists("mcedit.exe")) {