it is possible to not be on the scene yet

svn path=/trunk/KDE/kdelibs/; revision=1071841
This commit is contained in:
Aaron J. Seigo 2010-01-08 21:58:04 +00:00
parent e23b884920
commit ae239eed3f

View File

@ -690,10 +690,13 @@ void PopupAppletPrivate::updateDialogPosition()
return;
}
KConfigGroup sizeGroup = popupConfigGroup();
Corona *corona = qobject_cast<Corona *>(q->scene());
Q_ASSERT(corona);
if (!corona) {
return;
}
KConfigGroup sizeGroup = popupConfigGroup();
int preferredWidth = 0;
int preferredHeight = 0;