summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-14 00:25:24 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-14 00:25:24 +0300
commit8bb2cb1e077ded2837be80cb4efa75391317de42 (patch)
treef2094a3fae3e8222c95714147b3b3c5f537016f9 /src/gui
parent45df5234de5af24af5d60e2e92ad724079a7c5b1 (diff)
downloadmv-8bb2cb1e077ded2837be80cb4efa75391317de42.tar.gz
mv-8bb2cb1e077ded2837be80cb4efa75391317de42.tar.bz2
mv-8bb2cb1e077ded2837be80cb4efa75391317de42.tar.xz
mv-8bb2cb1e077ded2837be80cb4efa75391317de42.zip
Fix top right buttons focus issue.
Now buttons cant get focus.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windowmenu.cpp3
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();