diff --git a/src/widget.cpp b/src/widget.cpp --- a/src/widget.cpp +++ b/src/widget.cpp @@ -782,6 +782,7 @@ NWidgetCore::NWidgetCore(WidgetType tp, this->index = -1; this->widget_data = widget_data; this->tool_tip = tool_tip; + this->scrollbar_index = -1; } /**