guard mainItem of resize
crash-- Change-Id: Ifa08f78573d4eed690c23e93f87d1cf0b3c033ef
This commit is contained in:
parent
419b344b6d
commit
ab69d1029c
Binary file not shown.
@ -885,6 +885,11 @@ void Dialog::resizeEvent(QResizeEvent* re)
|
||||
{
|
||||
QQuickWindow::resizeEvent(re);
|
||||
|
||||
//A dialog can be resized even if no mainItem has ever been set
|
||||
if (!d->mainItem) {
|
||||
return;
|
||||
}
|
||||
|
||||
d->mainItem->disconnect(this);
|
||||
|
||||
d->frameSvgItem->setSize(QSizeF(re->size().width(),
|
||||
|
Loading…
Reference in New Issue
Block a user