summaryrefslogtreecommitdiff
path: root/src/gui/windowcontainer.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-13 15:28:25 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-13 15:28:25 +0000
commit59cfa10fc0492e912713a282ba05b48afcbe2854 (patch)
tree023a4dbffc4a1858631582ecf8870feb330f0aaf /src/gui/windowcontainer.cpp
parent682d6a9e44e583c088ed5970d69ef6bd9db7fd23 (diff)
downloadmana-client-59cfa10fc0492e912713a282ba05b48afcbe2854.tar.gz
mana-client-59cfa10fc0492e912713a282ba05b48afcbe2854.tar.bz2
mana-client-59cfa10fc0492e912713a282ba05b48afcbe2854.tar.xz
mana-client-59cfa10fc0492e912713a282ba05b48afcbe2854.zip
Got rid of last Allegro dialog: converted yes_no dialog to ConfirmDialog class
Diffstat (limited to 'src/gui/windowcontainer.cpp')
-rw-r--r--src/gui/windowcontainer.cpp3
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);
}