Don't crash here.
It does crash there for me when I click onto an applet's handle which has been added from another applet. I'm not sure why this happens. I've been running with this patch for a couple of days and didn't notice any sideeffects, besides plasma not crashing. svn path=/trunk/KDE/kdelibs/; revision=931935
This commit is contained in:
parent
a88f2d8247
commit
57162f188d
@ -487,9 +487,10 @@ void AppletHandle::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
|
||||
//set mousePos to the position in the applet, in screencoords, so it becomes easy
|
||||
//to reposition the toplevel view to the correct position.
|
||||
QPoint localpos = m_currentView->mapFromScene(m_applet->scenePos());
|
||||
m_mousePos = event->screenPos() - m_currentView->mapToGlobal(localpos);
|
||||
|
||||
if (m_currentView && m_applet) {
|
||||
QPoint localpos = m_currentView->mapFromScene(m_applet->scenePos());
|
||||
m_mousePos = event->screenPos() - m_currentView->mapToGlobal(localpos);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user