NOISSUE Don't append .disabled to string

This commit is contained in:
janrupf 2019-06-17 15:14:40 +02:00
parent e8bf9cef24
commit c1953739d9

View File

@ -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))
{