- insertRow(myXMLReader->subFolderId(aObjType), aDocRoot);
- }
- int aRow = aDoc->index(aObject);
+ if (!hasShownFolder(aDoc, aNotEmptyFolder)) {
+ insertRow(myXMLReader->subFolderId(aObjType), aDocRoot);
+ addShownFolder(aDoc, aNotEmptyFolder);
+ }
+ }
+ }
+ int aRow = aDoc->index(aObject, true);