summaryrefslogtreecommitdiffstats
path: root/api/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@users.noreply.github.com>2019-06-17 23:21:26 +0200
committerGitHub <noreply@github.com>2019-06-17 23:21:26 +0200
commitce12f1a734e08f1653aa482279a4dc6b6f3667eb (patch)
treeced02682cf1172d73808018c21ca88fa3dc5795c /api/logic
parente8bf9cef242d38702ed818086c9f263adb4e66c1 (diff)
parentc1953739d9051aa4a9957ae2e169a7bcd73420dd (diff)
downloadMultiMC-ce12f1a734e08f1653aa482279a4dc6b6f3667eb.tar
MultiMC-ce12f1a734e08f1653aa482279a4dc6b6f3667eb.tar.gz
MultiMC-ce12f1a734e08f1653aa482279a4dc6b6f3667eb.tar.lz
MultiMC-ce12f1a734e08f1653aa482279a4dc6b6f3667eb.tar.xz
MultiMC-ce12f1a734e08f1653aa482279a4dc6b6f3667eb.zip
Merge pull request #2694 from Janrupf/fix-disabled-mods
Operate on copy of QString instead of appending
Diffstat (limited to 'api/logic')
-rw-r--r--api/logic/minecraft/SimpleModList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/SimpleModList.cpp b/api/logic/minecraft/SimpleModList.cpp
index f365438e..6f4011a9 100644
--- a/api/logic/minecraft/SimpleModList.cpp
+++ b/api/logic/minecraft/SimpleModList.cpp
@@ -133,7 +133,7 @@ bool SimpleModList::installMod(const QString &filename)
if (type == Mod::MOD_SINGLEFILE || type == Mod::MOD_ZIPFILE || type == Mod::MOD_LITEMOD)
{
- if(QFile::exists(newpath) || QFile::exists(newpath.append(".disabled")))
+ if(QFile::exists(newpath) || QFile::exists(newpath + QString(".disabled")))
{
if(!QFile::remove(newpath))
{