it is possible to not be on the scene yet

svn path=/branches/KDE/4.4/kdelibs/; revision=1071844
This commit is contained in:
Aaron J. Seigo 2010-01-08 22:07:30 +00:00
parent b35c1c7523
commit 2ec16f9d26

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;