From 8a50880613af0eadebb6822a52cefae74e43098b Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Mon, 9 Nov 2020 10:07:19 +0100 Subject: [PATCH] Fix path not being saved on install pkgs --- rpcs3/rpcs3qt/main_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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