Don't reparent model managed by PCM.
This commit is contained in:
parent
275b68cf5c
commit
15e409a107
@ -578,7 +578,6 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
||||
|
||||
// The QObject parents tree is meaningful for memory management here,
|
||||
// see qDeleteAll above.
|
||||
model->setParent( preview );
|
||||
preview->setModel( model );
|
||||
previewLabels->setModel( model );
|
||||
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
|
Loading…
Reference in New Issue
Block a user