From e11a2bda561efe5b8cecf6006710f31c9ae14d56 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 31 Mar 2020 14:02:00 -0700 Subject: [PATCH] Delete properties dialog on close Fixes the game file being locked until Dolphin closes. --- Source/Core/DolphinQt/GameList/GameList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index edcb38923e..f15b20664f 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -431,6 +431,9 @@ void GameList::OpenProperties() return; PropertiesDialog* properties = new PropertiesDialog(this, *game); + // Since the properties dialog locks the game file, it's important to free it as soon as it's + // closed so that the file can be moved or deleted. + properties->setAttribute(Qt::WA_DeleteOnClose, true); connect(properties, &PropertiesDialog::OpenGeneralSettings, this, &GameList::OpenGeneralSettings);