Skip to content

Commit

Permalink
Fixes an (unreported?) issue with invalid MSSQL data items
Browse files Browse the repository at this point in the history
The issue was triggered when refreshing the browser with an
invalid MSSQL connection, the Populated state was never set
and the spinning icon was shown forever.
  • Loading branch information
elpaso authored and nyalldawson committed Jan 5, 2021
1 parent bc9ddad commit f9deb91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/mssql/qgsmssqldataitems.cpp
Expand Up @@ -136,6 +136,7 @@ QVector<QgsDataItem *> QgsMssqlConnectionItem::createChildren()
if ( !QgsMssqlConnection::openDatabase( db ) )
{
children.append( new QgsErrorItem( this, db.lastError().text(), mPath + "/error" ) );
setAsPopulated();
return children;
}

Expand Down

0 comments on commit f9deb91

Please sign in to comment.