summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanrupf <werbung.janrupf@t-online.de>2019-06-17 15:14:40 +0200
committerjanrupf <werbung.janrupf@t-online.de>2019-06-17 15:49:26 +0200
commitc1953739d9051aa4a9957ae2e169a7bcd73420dd (patch)
treeced02682cf1172d73808018c21ca88fa3dc5795c
parente8bf9cef242d38702ed818086c9f263adb4e66c1 (diff)
downloadMultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar
MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar.gz
MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar.lz
MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar.xz
MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.zip
NOISSUE Don't append .disabled to string
-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))
{