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: NOISSUE prefer shell script for running MCEdit on linux --- application/pages/WorldListPage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'application/pages') 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")) -- cgit v1.2.3