mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
[994] fixed
This commit is contained in:
parent
4205701f96
commit
54e0bb17fd
@ -315,12 +315,14 @@ bool CModManager::removeModDir(QString path)
|
||||
QDir checkDir(path);
|
||||
if(!checkDir.cdUp() || QString::compare("Mods", checkDir.dirName(), Qt::CaseInsensitive))
|
||||
return false;
|
||||
#ifndef VCMI_IOS //ios applications are stored in the isolated container
|
||||
if(!checkDir.cdUp() || QString::compare("vcmi", checkDir.dirName(), Qt::CaseInsensitive))
|
||||
return false;
|
||||
|
||||
QDir dir(path);
|
||||
if(!dir.absolutePath().contains("vcmi", Qt::CaseInsensitive))
|
||||
return false;
|
||||
#endif
|
||||
if(!dir.absolutePath().contains("Mods", Qt::CaseInsensitive))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user