We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f2e07 commit 027f20eCopy full SHA for 027f20e
Libs/Widgets/ctkSliderWidget.cpp
@@ -136,6 +136,10 @@ void ctkSliderWidgetPrivate::synchronizeSiblingWidth(int width)
136
{
137
Q_UNUSED(width);
138
Q_Q(const ctkSliderWidget);
139
+ if (!q->parent())
140
+ {
141
+ return;
142
+ }
143
QList<ctkSliderWidget*> siblings =
144
q->parent()->findChildren<ctkSliderWidget*>();
145
foreach(ctkSliderWidget* sibling, siblings)
@@ -154,6 +158,10 @@ void ctkSliderWidgetPrivate::synchronizeSiblingDecimals(int decimals)
154
158
155
159
Q_UNUSED(decimals);
156
160
161
162
163
164
157
165
166
167
0 commit comments