From c1953739d9051aa4a9957ae2e169a7bcd73420dd Mon Sep 17 00:00:00 2001 From: janrupf Date: Mon, 17 Jun 2019 15:14:40 +0200 Subject: NOISSUE Don't append .disabled to string --- api/logic/minecraft/SimpleModList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/logic/minecraft') 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)) { -- cgit v1.2.3