Skip to content

Commit 1abf9dc

Browse files
YoannQDQnyalldawson
authored andcommittedApr 24, 2023
Fix QgsDatabaseTableComboBox::setSchema
1 parent 763f5c2 commit 1abf9dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gui/qgsdatabasetablecombobox.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ void QgsDatabaseTableComboBox::setSchema( const QString &schema )
154154
const QString oldTable = currentTable();
155155
QgsDatabaseTableModel *oldModel = mModel;
156156
mModel = new QgsDatabaseTableModel( mProvider, mConnection, mSchema, this );
157+
mModel->setAllowEmptyTable( mAllowEmpty );
157158
mSortModel->setSourceModel( mModel );
158159
oldModel->deleteLater();
159160
setTable( oldTable );

0 commit comments

Comments
 (0)
Please sign in to comment.