diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-05-02 17:30:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 17:30:49 +0200 |
| commit | 5817be7bd3ac1b3f68a24410dc416d69ae2ff20f (patch) | |
| tree | 4f9586afbdd910689cb883422fbbdf3289989ca2 /Source/Core/DolphinQt/Config/FilesystemWidget.cpp | |
| parent | 967280f140f39283e9e6997ffa6426329d94f611 (diff) | |
| parent | 0397339ab1fbdf6309ab14dbf48946853c608522 (diff) | |
Merge pull request #12747 from mitaclaw/qt-memory-leaks
DolphinQt: Properly Delete (Some) Widgets
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>(); |
