mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Fix one warning in log
This commit is contained in:
parent
e7ed098b9d
commit
eca3d9091b
|
@ -81,9 +81,10 @@ void FavoritesPaneWidget::setUp( Config::Class * cfg, QMenu * menu )
|
|||
listItemDelegate = new WordListItemDelegate( m_favoritesTree->itemDelegate() );
|
||||
m_favoritesTree->setItemDelegate( listItemDelegate );
|
||||
|
||||
QItemSelectionModel * oldModel = m_favoritesTree->selectionModel();
|
||||
QAbstractItemModel * oldModel = m_favoritesTree->model();
|
||||
m_favoritesTree->setModel( m_favoritesModel );
|
||||
oldModel->deleteLater();
|
||||
if( oldModel )
|
||||
oldModel->deleteLater();
|
||||
|
||||
connect( m_favoritesTree, SIGNAL( expanded( QModelIndex ) ),
|
||||
m_favoritesModel, SLOT( itemExpanded( QModelIndex ) ) );
|
||||
|
|
Loading…
Reference in a new issue