Skip to content

Commit

Permalink
Delete properties dialog on close
Browse files Browse the repository at this point in the history
Fixes the game file being locked until Dolphin closes.
  • Loading branch information
Pokechu22 committed Apr 2, 2020
1 parent 4ff8559 commit 03eb887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt/Config/PropertiesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ PropertiesDialog::PropertiesDialog(QWidget* parent, const UICommon::GameFile& ga
QString::fromStdString(game.GetGameID()),
QString::fromStdString(game.GetLongName())));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
// The properties dialog is not re-used, and maintains a lock on the game file until it's deleted,
// preventing the file from being moved or deleted.
setAttribute(Qt::WA_DeleteOnClose, true);

QVBoxLayout* layout = new QVBoxLayout();

Expand Down

0 comments on commit 03eb887

Please sign in to comment.