From 60ab33231261edfbab71c0dfe3b87d977705e4ea Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 31 Oct 2008 04:37:56 +0000 Subject: [PATCH] don't assert, just check. over the next month or two we need to keep an eye on which asserts around corona() get triggered and try and make as many of those calls happen only post-load CCMAIL:faure@kde.org svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878025 --- containment.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/containment.cpp b/containment.cpp index 3cd6b0d92..c9ffecf4f 100644 --- a/containment.cpp +++ b/containment.cpp @@ -1491,11 +1491,10 @@ void ContainmentPrivate::positionToolBox() toolBox->setCorner(ToolBox::Right); } } - } else { + } else if (q->corona()) { //TODO: we should probably get these values from the Plasma app itself // so we actually know what the available space *is* // perhaps a virtual method in Corona for this? - Q_ASSERT(q->corona()); QRectF avail = q->corona()->availableScreenRegion(screen).boundingRect(); QRectF screenGeom = q->corona()->screenGeometry(screen);