summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-09 01:57:10 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:57:10 +0200
commit0bccc94471d0223cf493ad860fa890614480433d (patch)
tree6b76f87da3da782eb1e0d083ad2b803fdabb83d1 /gui
parenta0a805735b568d57e09752c60c5afadbdfde5533 (diff)
downloadMultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar.gz
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar.lz
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar.xz
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.zip
Cleanup - QFileInfo derp and unused variables
Diffstat (limited to 'gui')
-rw-r--r--gui/pages/VersionPage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/pages/VersionPage.cpp b/gui/pages/VersionPage.cpp
index 7cee0610..a59598a2 100644
--- a/gui/pages/VersionPage.cpp
+++ b/gui/pages/VersionPage.cpp
@@ -158,7 +158,8 @@ void VersionPage::on_jarmodBtn_clicked()
auto f = [&](QStandardPaths::StandardLocation l)
{
QString location = QStandardPaths::writableLocation(l);
- if (!QFileInfo::exists(location))
+ QFileInfo finfo(location);
+ if (!finfo.exists())
return;
locations.insert(location);
};
@@ -180,8 +181,7 @@ void VersionPage::on_jarmodBtn_clicked()
w.setSidebarUrls(urls);
if (w.exec())
- ;
- m_version->installJarMods(w.selectedFiles());
+ m_version->installJarMods(w.selectedFiles());
}
void VersionPage::on_resetLibraryOrderBtn_clicked()