summaryrefslogtreecommitdiffstats
path: root/application/pages/ModFolderPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-12 23:43:11 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-12 23:43:11 +0200
commit5bbe1c7132f3fd4c6850519e045f378e114ada50 (patch)
tree9c98c31070108f2117943266600a06a20a6e5e25 /application/pages/ModFolderPage.cpp
parentbd1a28d8639c0deb7afa5d1a895389f5fb980db0 (diff)
downloadMultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar.gz
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar.lz
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.tar.xz
MultiMC-5bbe1c7132f3fd4c6850519e045f378e114ada50.zip
GH-951 add .litemod to mod browse dialog
Diffstat (limited to 'application/pages/ModFolderPage.cpp')
-rw-r--r--application/pages/ModFolderPage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/pages/ModFolderPage.cpp b/application/pages/ModFolderPage.cpp
index 16272653..a70c1620 100644
--- a/application/pages/ModFolderPage.cpp
+++ b/application/pages/ModFolderPage.cpp
@@ -45,6 +45,7 @@ ModFolderPage::ModFolderPage(BaseInstance *inst, std::shared_ptr<ModList> mods,
m_displayName = displayName;
m_iconName = iconName;
m_helpName = helpPage;
+ m_filter = tr("%1 (*.zip *.jar)");
ui->modTreeView->setModel(m_mods.get());
ui->modTreeView->installEventFilter(this);
auto smodel = ui->modTreeView->selectionModel();
@@ -135,7 +136,7 @@ void ModFolderPage::on_addModBtn_clicked()
tr("Select %1",
"Select whatever type of files the page contains. Example: 'Loader Mods'")
.arg(m_displayName),
- tr("%1 (*.zip *.jar)").arg(m_displayName), this->parentWidget());
+ m_filter.arg(m_displayName), this->parentWidget());
if (!list.empty())
{
m_mods->stopWatching();