GH-1178 sanitize mod paths while installing folder mods

This commit is contained in:
Petr Mrázek
2015-12-26 03:20:41 +01:00
parent c64a7940c1
commit 7670d72bd9
4 changed files with 15 additions and 10 deletions

View File

@ -105,7 +105,7 @@ void LegacyJarModPage::on_addJarBtn_clicked()
m_jarmods->stopWatching();
for (auto filename : list)
{
m_jarmods->installMod(QFileInfo(filename));
m_jarmods->installMod(filename);
}
m_jarmods->startWatching();
}

View File

@ -142,7 +142,7 @@ void ModFolderPage::on_addModBtn_clicked()
m_mods->stopWatching();
for (auto filename : list)
{
m_mods->installMod(QFileInfo(filename));
m_mods->installMod(filename);
}
m_mods->startWatching();
}