summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
commitd42e9ea834a07c6f60dd5248db6520d1ff423ac4 (patch)
tree7de19d851aecae83bc8467d70c9a718ebff98205 /src/gui/window.cpp
parent32ca8ca9551070ba1086cd5b6c973620052061ed (diff)
downloadmana-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.gz
mana-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.bz2
mana-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.xz
mana-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.zip
Made item amount window a modal dialog and removed support for old map format.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 54bce746..1245c977 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -122,8 +122,7 @@ Window::~Window()
if (prevModal)
{
- gcn::FocusHandler *focusHandler = _getFocusHandler();
- focusHandler->requestModalFocus(prevModal);
+ prevModal->requestModalFocus();
}
}
@@ -221,9 +220,9 @@ Window *Window::getParentWindow()
return parent;
}
-bool Window::isModal()
+void Window::scheduleDelete()
{
- return modal;
+ windowContainer->scheduleDelete(this);
}
void Window::add(gcn::Widget *w)