summaryrefslogtreecommitdiffstats
path: root/application/pages
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-12-26 03:20:41 +0100
committerPetr Mrázek <peterix@gmail.com>2015-12-26 03:20:41 +0100
commit7670d72bd9c8bb2adcecd2d04413a2abb9ac174f (patch)
treef02b7cc15ba8ca54f3c404ba542db2cffc841c4c /application/pages
parentc64a7940c1c99f6691d0fdd45910a09808e40d97 (diff)
downloadMultiMC-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.cpp2
-rw-r--r--application/pages/ModFolderPage.cpp2
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();
}