diff options
Diffstat (limited to 'src/gui/windowcontainer.cpp')
-rw-r--r-- | src/gui/windowcontainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windowcontainer.cpp b/src/gui/windowcontainer.cpp index 3367b5f4..c7e466fe 100644 --- a/src/gui/windowcontainer.cpp +++ b/src/gui/windowcontainer.cpp @@ -161,5 +161,8 @@ gcn::Widget *WindowContainer::getModalWindow() void WindowContainer::scheduleDelete(gcn::Widget *widget) { + if (widget == (gcn::Widget*)modalWindow) { + setModalWindow(NULL); + } deathList.push_back(widget); } |