Don't reparent model managed by PCM.

This commit is contained in:
Teo Mrnjavac 2015-12-17 20:05:48 +01:00
parent 275b68cf5c
commit 15e409a107

View File

@ -578,7 +578,6 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
// The QObject parents tree is meaningful for memory management here, // The QObject parents tree is meaningful for memory management here,
// see qDeleteAll above. // see qDeleteAll above.
model->setParent( preview );
preview->setModel( model ); preview->setModel( model );
previewLabels->setModel( model ); previewLabels->setModel( model );
preview->setSelectionMode( QAbstractItemView::NoSelection ); preview->setSelectionMode( QAbstractItemView::NoSelection );