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
This commit is contained in:
parent
dc773ab3f4
commit
60ab332312
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user