diff options
Diffstat (limited to 'src/gui/widgets/tabstrip.cpp')
-rw-r--r-- | src/gui/widgets/tabstrip.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/tabstrip.cpp b/src/gui/widgets/tabstrip.cpp index d3f334e8a..025eb7ac7 100644 --- a/src/gui/widgets/tabstrip.cpp +++ b/src/gui/widgets/tabstrip.cpp @@ -63,6 +63,8 @@ void TabStrip::action(const ActionEvent &event) { Widget *const widget = event.getSource(); Button *const button = static_cast<Button*>(widget); + if (!button) + return; if (button->isPressed2()) { FOR_EACH (WidgetListConstIterator, iter, mWidgets) |