Skip to content

Commit f4216be

Browse files
committed
[mssql] Fix never ending schema refreshing icon in browser
1 parent b748ac6 commit f4216be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/providers/mssql/qgsmssqldataitems.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ QVector<QgsDataItem *> QgsMssqlConnectionItem::createChildren()
257257
}
258258
else
259259
{
260-
//set all as populated
260+
//set all as populated -- we also need to do this for newly created items, because they won't yet be children of this item
261+
for ( QgsDataItem *child : qgis::as_const( children ) )
262+
{
263+
child->setState( Populated );
264+
}
261265
setAsPopulated();
262266
}
263267
}

0 commit comments

Comments
 (0)