mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt: Fix memory lkea in FilesystemWidget
QTreeView::setModel doesn't transfer ownership of the object. Setting the parent resolves this
This commit is contained in:
@ -62,6 +62,7 @@ void FilesystemWidget::CreateWidgets()
|
||||
m_tree_view = new QTreeView(this);
|
||||
m_tree_view->setModel(m_tree_model);
|
||||
m_tree_view->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
m_tree_model->setParent(m_tree_view);
|
||||
|
||||
auto* header = m_tree_view->header();
|
||||
|
||||
|
Reference in New Issue
Block a user