Skip to content

Commit

Permalink
Debug|libdeng2|Widget: Forming the "path" name of a widget
Browse files Browse the repository at this point in the history
If widgets are unnamed, use the address as a temporary name.
  • Loading branch information
skyjake committed Jun 20, 2013
1 parent ab470d5 commit 8fdcc74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/libdeng2/src/widgets/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,15 @@ DotPath Widget::path() const
String result;
while(w)
{
if(!result.isEmpty()) result = "." + result;
if(!w->d->name.isEmpty())
{
if(!result.isEmpty()) result = "." + result;
result = w->d->name + result;
}
else
{
result = QString("0x%1").arg(dintptr(w), 0, 16) + result;
}
w = w->parent();
}
return result;
Expand Down

0 comments on commit 8fdcc74

Please sign in to comment.