diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index d96d736b32..f181d3912b 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -507,6 +507,8 @@ void main_window::InstallPackages(QStringList file_paths) } file_paths.append(paths); + const QFileInfo file_info(file_paths[0]); + m_gui_settings->SetValue(gui::fd_install_pkg, file_info.path()); } else if (file_paths.count() == 1) { @@ -533,8 +535,6 @@ void main_window::InstallPackages(QStringList file_paths) { gui_log.error("Could not copy rap file: %s", rapname); } - - m_gui_settings->SetValue(gui::fd_install_pkg, file_info.path()); } // Find remaining package files