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:
@@ -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() ) );
|
||||
|
Reference in New Issue
Block a user