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 github-actions[bot] committed Apr 24, 2023
1 parent 9d2fa2c commit 2365b1f
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 2365b1f

Please sign in to comment.