Skip to content

Commit

Permalink
do not set delegate if not given
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Jan 21, 2022
1 parent 8291009 commit 1740814
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/providers/qgsabstractdbsourceselect.cpp
Expand Up @@ -55,7 +55,8 @@ void QgsAbstractDbSourceSelect::init( QgsAbstractDbTableModel *model, QItemDeleg
{
mProxyModel->setSourceModel( model );
mTablesTreeView->setModel( mProxyModel );
mTablesTreeView->setItemDelegate( delegate );
if (delegate)
mTablesTreeView->setItemDelegate( delegate );

// setting the search coluns in search settings menu using the model header data
if ( mSearchSettingsMenu )
Expand Down

0 comments on commit 1740814

Please sign in to comment.