summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/tabbedarea.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 970a5cb1..5e0807e6 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -158,6 +158,9 @@ void TabbedArea::logic()
void TabbedArea::mousePressed(gcn::MouseEvent &mouseEvent)
{
+ if (mouseEvent.isConsumed())
+ return;
+
if (mouseEvent.getButton() == gcn::MouseEvent::LEFT)
{
gcn::Widget *widget = mTabContainer->getWidgetAt(mouseEvent.getX(),
@@ -165,7 +168,10 @@ void TabbedArea::mousePressed(gcn::MouseEvent &mouseEvent)
gcn::Tab *tab = dynamic_cast<gcn::Tab*>(widget);
if (tab)
+ {
setSelectedTab(tab);
+ requestFocus();
+ }
}
}