diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-16 21:28:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-16 21:28:08 +0300 |
commit | 82ac4641828ec7387863bb18cf4493190c4cc68f (patch) | |
tree | 54fa2aeeff83109ca289894bf08bc767084050a3 /src/gui/base/focushandler.cpp | |
parent | 07e8275965ccb989e3bcc288e2440bffcbca4a8e (diff) | |
download | manaverse-82ac4641828ec7387863bb18cf4493190c4cc68f.tar.gz manaverse-82ac4641828ec7387863bb18cf4493190c4cc68f.tar.bz2 manaverse-82ac4641828ec7387863bb18cf4493190c4cc68f.tar.xz manaverse-82ac4641828ec7387863bb18cf4493190c4cc68f.zip |
Remove Exception class.
Diffstat (limited to 'src/gui/base/focushandler.cpp')
-rw-r--r-- | src/gui/base/focushandler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/base/focushandler.cpp b/src/gui/base/focushandler.cpp index ff149bf99..3c6978e70 100644 --- a/src/gui/base/focushandler.cpp +++ b/src/gui/base/focushandler.cpp @@ -67,7 +67,6 @@ #include "gui/base/focushandler.hpp" -#include "gui/base/exception.hpp" #include "gui/base/widget.hpp" #include "listeners/focuslistener.h" @@ -106,7 +105,7 @@ namespace gcn } if (toBeFocusedIndex < 0) - throw GCN_EXCEPTION("Trying to focus a none existing widget."); + return; Widget *const oldFocused = mFocusedWidget; @@ -128,10 +127,9 @@ namespace gcn void FocusHandler::requestModalFocus(Widget* widget) { if (mModalFocusedWidget && mModalFocusedWidget != widget) - throw GCN_EXCEPTION("Another widget already has modal focus."); + return; mModalFocusedWidget = widget; - if (mFocusedWidget && !mFocusedWidget->isModalFocused()) focusNone(); } @@ -141,8 +139,7 @@ namespace gcn if (mModalMouseInputFocusedWidget && mModalMouseInputFocusedWidget != widget) { - throw GCN_EXCEPTION("Another widget already has " - "modal input focus."); + return; } mModalMouseInputFocusedWidget = widget; |