diff options
Diffstat (limited to 'gui/pages')
-rw-r--r-- | gui/pages/VersionPage.cpp | 6 |
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() |