Skip to content

Commit

Permalink
Fixed|PopupWidget: Stop observing parent’s deletion when popup closed
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 21, 2013
1 parent 51928c0 commit 5f2d70a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/client/src/ui/widgets/popupwidget.cpp
Expand Up @@ -405,7 +405,11 @@ void PopupWidget::panelDismissed()
PanelWidget::panelDismissed();

// Move back to the original parent widget.
if(!d->realParent)
if(d->realParent)
{
d->realParent->audienceForDeletion -= d;
}
else
{
// The real parent has been deleted.
d->realParent = &root();
Expand Down

0 comments on commit 5f2d70a

Please sign in to comment.