1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 11:47:24 +01:00

proper check because of a crash that happened when user opened Deleted Objects library while some interfaces were there

This commit is contained in:
Vadim Kurland 2010-02-10 22:10:25 +00:00
parent 6713286942
commit 9e3a3db7c7

View File

@ -667,9 +667,10 @@ QString FWObjectPropertiesFactory::getObjectPropertiesDetailed(FWObject *obj,
do
{
parent_host = parent_host->getParent();
if (parent_host == NULL) break;
short_path.push_front(QString::fromUtf8(parent_host->getName().c_str()));
}
while (parent_host && Host::cast(parent_host) == NULL);
while (Host::cast(parent_host) == NULL);
str += QString("<b>Parent: </b>%1<br>\n").arg(short_path.join("/"));