diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-12-26 03:20:41 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-12-26 03:20:41 +0100 |
commit | 7670d72bd9c8bb2adcecd2d04413a2abb9ac174f (patch) | |
tree | f02b7cc15ba8ca54f3c404ba542db2cffc841c4c /application/pages | |
parent | c64a7940c1c99f6691d0fdd45910a09808e40d97 (diff) | |
download | MultiMC-7670d72bd9c8bb2adcecd2d04413a2abb9ac174f.tar MultiMC-7670d72bd9c8bb2adcecd2d04413a2abb9ac174f.tar.gz MultiMC-7670d72bd9c8bb2adcecd2d04413a2abb9ac174f.tar.lz MultiMC-7670d72bd9c8bb2adcecd2d04413a2abb9ac174f.tar.xz MultiMC-7670d72bd9c8bb2adcecd2d04413a2abb9ac174f.zip |
GH-1178 sanitize mod paths while installing folder mods
Diffstat (limited to 'application/pages')
-rw-r--r-- | application/pages/LegacyJarModPage.cpp | 2 | ||||
-rw-r--r-- | application/pages/ModFolderPage.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/application/pages/LegacyJarModPage.cpp b/application/pages/LegacyJarModPage.cpp index 5d397978..2ff6b6de 100644 --- a/application/pages/LegacyJarModPage.cpp +++ b/application/pages/LegacyJarModPage.cpp @@ -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(); } diff --git a/application/pages/ModFolderPage.cpp b/application/pages/ModFolderPage.cpp index e3ece5a6..6791a59e 100644 --- a/application/pages/ModFolderPage.cpp +++ b/application/pages/ModFolderPage.cpp @@ -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(); } |