guard mainItem of resize

crash--

Change-Id: Ifa08f78573d4eed690c23e93f87d1cf0b3c033ef
This commit is contained in:
Marco Martin 2014-10-03 13:51:57 +02:00
parent 419b344b6d
commit ab69d1029c
2 changed files with 5 additions and 0 deletions

View File

@ -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(),