From 2ec16f9d265514261d36334e87a1b0725abbeb2f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 8 Jan 2010 22:07:30 +0000 Subject: [PATCH] it is possible to not be on the scene yet svn path=/branches/KDE/4.4/kdelibs/; revision=1071844 --- popupapplet.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index 5d9322c03..7af4ed52a 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -690,10 +690,13 @@ void PopupAppletPrivate::updateDialogPosition() return; } - KConfigGroup sizeGroup = popupConfigGroup(); Corona *corona = qobject_cast(q->scene()); - Q_ASSERT(corona); + if (!corona) { + return; + } + + KConfigGroup sizeGroup = popupConfigGroup(); int preferredWidth = 0; int preferredHeight = 0;