diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-30 10:58:16 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-04-30 11:17:28 -0700 |
| commit | 0397339ab1fbdf6309ab14dbf48946853c608522 (patch) | |
| tree | 0f116933da42d99f743817f75110b037082619b4 /Source/Core/DolphinQt/Config/FilesystemWidget.cpp | |
| parent | e69486d2cb4e3e01dd622d760350b26d6cbd59f5 (diff) | |
DolphinQt: Properly Delete (Some) Widgets
This is not every memory leak, just the ones that were obvious.
Diffstat (limited to 'Source/Core/DolphinQt/Config/FilesystemWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/FilesystemWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp index 56aff5b9df..de8b366310 100644 --- a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp +++ b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp @@ -226,6 +226,7 @@ void FilesystemWidget::ShowContextMenu(const QPoint&) auto* item = m_tree_model->itemFromIndex(selection->selectedIndexes()[0]); QMenu* menu = new QMenu(this); + menu->setAttribute(Qt::WA_DeleteOnClose, true); EntryType type = item->data(ENTRY_TYPE).value<EntryType>(); |
