From ae239eed3fff04216e8c967f236ddc4463ba5391 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 8 Jan 2010 21:58:04 +0000 Subject: [PATCH] it is possible to not be on the scene yet svn path=/trunk/KDE/kdelibs/; revision=1071841 --- popupapplet.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index aae19b9ad..e6e43d2e6 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;