mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #8716 from Pokechu22/properties-leak
Delete properties dialog on close
This commit is contained in:
commit
3629e75dd2
1 changed files with 3 additions and 0 deletions
|
@ -431,6 +431,9 @@ void GameList::OpenProperties()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PropertiesDialog* properties = new PropertiesDialog(this, *game);
|
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);
|
connect(properties, &PropertiesDialog::OpenGeneralSettings, this, &GameList::OpenGeneralSettings);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue