From 8bb2cb1e077ded2837be80cb4efa75391317de42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Apr 2012 00:25:24 +0300 Subject: Fix top right buttons focus issue. Now buttons cant get focus. --- src/gui/windowmenu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') 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(); -- cgit v1.2.3-70-g09d2