mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk: Fix crash and memory leak in TreeSelectionEditor system
This commit is contained in:
parent
07264140cb
commit
f1c8c0ebbe
@ -158,9 +158,9 @@ void PdmUiTreeSelectionEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
|
||||
if (!m_model)
|
||||
{
|
||||
m_model = new caf::PdmUiTreeSelectionQModel(m_treeView);
|
||||
m_model = new caf::PdmUiTreeSelectionQModel(this);
|
||||
|
||||
m_proxyModel = new FilterLeafNodesOnlyProxyModel;
|
||||
m_proxyModel = new FilterLeafNodesOnlyProxyModel(this);
|
||||
m_proxyModel->setSourceModel(m_model);
|
||||
m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||
|
||||
|
@ -95,8 +95,8 @@ private:
|
||||
void recursiveNotifyChildren(const QModelIndex& index);
|
||||
|
||||
private:
|
||||
QList<caf::PdmOptionItemInfo> m_options;
|
||||
caf::PdmUiFieldEditorHandle* m_uiFieldHandle;
|
||||
QList<caf::PdmOptionItemInfo> m_options;
|
||||
QPointer<caf::PdmUiFieldEditorHandle> m_uiFieldHandle;
|
||||
|
||||
const QVariant* m_uiValueCache;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user