diff options
author | janrupf <werbung.janrupf@t-online.de> | 2019-06-17 15:14:40 +0200 |
---|---|---|
committer | janrupf <werbung.janrupf@t-online.de> | 2019-06-17 15:49:26 +0200 |
commit | c1953739d9051aa4a9957ae2e169a7bcd73420dd (patch) | |
tree | ced02682cf1172d73808018c21ca88fa3dc5795c /api/logic/minecraft/SimpleModList.cpp | |
parent | e8bf9cef242d38702ed818086c9f263adb4e66c1 (diff) | |
download | MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar.gz MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar.lz MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.tar.xz MultiMC-c1953739d9051aa4a9957ae2e169a7bcd73420dd.zip |
NOISSUE Don't append .disabled to string
Diffstat (limited to 'api/logic/minecraft/SimpleModList.cpp')
-rw-r--r-- | api/logic/minecraft/SimpleModList.cpp | 2 |
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)) { |