summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/tabstrip.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/widgets/tabstrip.cpp b/src/gui/widgets/tabstrip.cpp
index 879da6210..0be26c302 100644
--- a/src/gui/widgets/tabstrip.cpp
+++ b/src/gui/widgets/tabstrip.cpp
@@ -58,8 +58,9 @@ void TabStrip::action(const ActionEvent &event)
WidgetGroup::action(event);
if (event.getSource())
{
- const Widget *const widget = event.getSource();
- if (static_cast<const Button*>(widget)->isPressed2())
+ Widget *const widget = event.getSource();
+ Button *const button = static_cast<Button*>(widget);
+ if (button->isPressed2())
{
FOR_EACH (WidgetListConstIterator, iter, mWidgets)
{
@@ -70,5 +71,9 @@ void TabStrip::action(const ActionEvent &event)
}
}
}
+ else
+ {
+ button->setPressed(true);
+ }
}
}