From 59cfa10fc0492e912713a282ba05b48afcbe2854 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 13 Jan 2005 15:28:25 +0000 Subject: Got rid of last Allegro dialog: converted yes_no dialog to ConfirmDialog class --- src/gui/windowcontainer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/windowcontainer.cpp') 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); } -- cgit v1.2.3-70-g09d2