Merge pull request #12747 from mitaclaw/qt-memory-leaks

DolphinQt: Properly Delete (Some) Widgets
This commit is contained in:
Admiral H. Curtiss 2024-05-02 17:30:49 +02:00 committed by GitHub
commit 5817be7bd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 25 additions and 9 deletions

View file

@ -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>();