Skip to content
Permalink
Browse files

Fixes an (unreported?) issue with invalid MSSQL data items

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 f9deb915f9828c374e8d1e571e855d5b7ffb534d
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/providers/mssql/qgsmssqldataitems.cpp
@@ -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;
}

0 comments on commit f9deb91

Please sign in to comment.
You can’t perform that action at this time.