1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

Use direct implementation and do not call virtuals in the constructor

This commit is contained in:
Uwe L. Korn
2014-09-14 08:51:18 +01:00
parent 8269d69a48
commit 9132c5de7d

View File

@@ -36,7 +36,8 @@ SourcesProxyModel::SourcesProxyModel( SourcesModel* model, QObject* parent )
setDynamicSortFilter( true );
setSortRole( SourcesModel::SortRole );
setSourceModel( model );
// Use direct implementation and do not call virtuals in the constructor.
QSortFilterProxyModel::setSourceModel( model );
connect( model, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onModelChanged() ) );
connect( model, SIGNAL( rowsRemoved( QModelIndex, int, int ) ), SLOT( onModelChanged() ) );