summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setuptabscroll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs/setuptabscroll.cpp')
-rw-r--r--src/gui/widgets/tabs/setuptabscroll.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setuptabscroll.cpp b/src/gui/widgets/tabs/setuptabscroll.cpp
index 0a0294357..11c7afd61 100644
--- a/src/gui/widgets/tabs/setuptabscroll.cpp
+++ b/src/gui/widgets/tabs/setuptabscroll.cpp
@@ -70,6 +70,8 @@ void SetupTabScroll::clear()
void SetupTabScroll::addControl(SetupItem *const widget)
{
+ if (!widget)
+ return;
const std::string actionId = widget->getActionEventId();
if (!actionId.empty())
{