The 'parentItemInfo' keeps the information from the parent, which can be: directory/share/host/workgroup.
When the 'mainItemInfo' is root like "smb://" there is no 'parentItemInfo', it can be null.
Another reason it might be used in my regression tests (I am not sure if it is), you can use if you want its in "src/plugin/test_folderlistmodel/regression/regression_folderlilstmodel.pro"
Renato,
The check in line 61 is necessary.
The 'parentItemInfo' keeps the information from the parent, which can be: directory/ share/host/ workgroup.
When the 'mainItemInfo' is root like "smb://" there is no 'parentItemInfo', it can be null.
Another reason it might be used in my regression tests (I am not sure if it is), you can use if you want its in "src/plugin/ test_folderlist model/regressio n/regression_ folderlilstmode l.pro"