diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-14 00:25:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-14 00:25:24 +0300 |
commit | 8bb2cb1e077ded2837be80cb4efa75391317de42 (patch) | |
tree | f2094a3fae3e8222c95714147b3b3c5f537016f9 /src/gui | |
parent | 45df5234de5af24af5d60e2e92ad724079a7c5b1 (diff) | |
download | manaplus-8bb2cb1e077ded2837be80cb4efa75391317de42.tar.gz manaplus-8bb2cb1e077ded2837be80cb4efa75391317de42.tar.bz2 manaplus-8bb2cb1e077ded2837be80cb4efa75391317de42.tar.xz manaplus-8bb2cb1e077ded2837be80cb4efa75391317de42.zip |
Fix top right buttons focus issue.
Now buttons cant get focus.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windowmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 12085578b..e1ac916eb 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -65,6 +65,8 @@ WindowMenu::WindowMenu(): { int x = 0, h = 0; + setFocusable(false); + addButton(N_("BC"), _("Bot checker"), x, h, Input::KEY_WINDOW_BOT_CHECKER); addButton(N_("ONL"), _("Who is online"), x, h, @@ -258,6 +260,7 @@ void WindowMenu::addButton(const char* text, std::string description, btn->setDescription(description); btn->setTag(key); add(btn); + btn->setFocusable(false); mButtons.push_back(btn); x += btn->getWidth() + 3; h = btn->getHeight(); |