QColorDialog: fix a crash on small displays
On a small display leftLay is left initialized to a null pointer, therefore don't try to dereference it. Task-number: QTBUG-43643 Change-Id: I9d22dac88a3a853ce154a6f64b35fc113abd9262 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
73fcae8716
commit
bc7243d583
@ -1768,7 +1768,8 @@ void QColorDialogPrivate::initWidgets()
|
||||
topLay->addWidget(cs);
|
||||
#else
|
||||
rightLay->addWidget(cs);
|
||||
leftLay->addSpacing(cs->gl->margin());
|
||||
if (leftLay)
|
||||
leftLay->addSpacing(cs->gl->margin());
|
||||
#endif
|
||||
|
||||
buttons = new QDialogButtonBox(q);
|
||||
|
Loading…
Reference in New Issue
Block a user