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/Debugger/ThreadWidget.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/Debugger/ThreadWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp index 0140ff58d9..12f13f956d 100644 --- a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp @@ -119,6 +119,8 @@ void ThreadWidget::ShowContextMenu(QTableWidget* table) return; QMenu* menu = new QMenu(this); + menu->setAttribute(Qt::WA_DeleteOnClose, true); + const QString watch_name = QStringLiteral("thread_context_%1").arg(addr, 8, 16, QLatin1Char('0')); menu->addAction(tr("Add &breakpoint"), this, [this, addr] { emit RequestBreakpoint(addr); }); menu->addAction(tr("Add memory breakpoint"), this, |
