Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8716 from Pokechu22/properties-leak
Delete properties dialog on close
  • Loading branch information
JosJuice committed Apr 16, 2020
2 parents 744abab + e11a2bd commit 3629e75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt/GameList/GameList.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 3629e75

Please sign in to comment.