summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-05-02 17:30:49 +0200
committerGitHub <noreply@github.com>2024-05-02 17:30:49 +0200
commit5817be7bd3ac1b3f68a24410dc416d69ae2ff20f (patch)
tree4f9586afbdd910689cb883422fbbdf3289989ca2 /Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp
parent967280f140f39283e9e6997ffa6426329d94f611 (diff)
parent0397339ab1fbdf6309ab14dbf48946853c608522 (diff)
Merge pull request #12747 from mitaclaw/qt-memory-leaks
DolphinQt: Properly Delete (Some) Widgets
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp
index a9081c244f..f68b6d5bbf 100644
--- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp
+++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp
@@ -806,6 +806,8 @@ void BranchWatchDialog::OnTableContextMenu(const QPoint& pos)
QModelIndexList index_list = m_table_view->selectionModel()->selectedRows(index.column());
QMenu* const menu = new QMenu;
+ menu->setAttribute(Qt::WA_DeleteOnClose, true);
+
menu->addAction(tr("&Delete"), [this, index_list]() { OnTableDelete(std::move(index_list)); });
switch (index.column())
{