From 0bccc94471d0223cf493ad860fa890614480433d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 9 Jun 2014 01:57:10 +0200 Subject: Cleanup - QFileInfo derp and unused variables --- gui/pages/VersionPage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/pages') 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() -- cgit v1.2.3