From 4fbb944f132eb886a6f5b350e5a14a4fe380aacf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jul 2015 00:12:09 +0300 Subject: Add missing checks into gui. --- src/gui/widgets/tabstrip.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/widgets/tabstrip.cpp') 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(widget); + if (!button) + return; if (button->isPressed2()) { FOR_EACH (WidgetListConstIterator, iter, mWidgets) -- cgit v1.2.3-70-g09d2