Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix QgsDatabaseTableComboBox::setSchema
  • Loading branch information
YoannQDQ authored and nyalldawson committed Apr 24, 2023
1 parent 41a95bf commit 4dfad6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsdatabasetablecombobox.cpp
Expand Up @@ -154,6 +154,7 @@ void QgsDatabaseTableComboBox::setSchema( const QString &schema )
const QString oldTable = currentTable();
QgsDatabaseTableModel *oldModel = mModel;
mModel = new QgsDatabaseTableModel( mProvider, mConnection, mSchema, this );
mModel->setAllowEmptyTable( mAllowEmpty );
mSortModel->setSourceModel( mModel );
oldModel->deleteLater();
setTable( oldTable );
Expand Down

0 comments on commit 4dfad6c

Please sign in to comment.