if m_toolBacker would be true this line would crash, thanks to Christoph Bartoschek for reporting

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764515
This commit is contained in:
İsmail Dönmez 2008-01-21 23:52:42 +00:00
parent 08812eeb00
commit 730266dc65

View File

@ -212,7 +212,7 @@ void DesktopToolbox::showToolbox()
void DesktopToolbox::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
{
//kDebug() << event->pos() << event->scenePos() << m_toolBacker->rect().contains(event->scenePos().toPoint());
if (!m_toolBacker && m_toolBacker->rect().contains(event->scenePos().toPoint())) {
if (m_toolBacker && m_toolBacker->rect().contains(event->scenePos().toPoint())) {
QGraphicsItem::hoverLeaveEvent(event);
return;
}