Commit 364451b1 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

https://bugs.kde.org/show_bug.cgi?id=416013#c5

Followup to commit 21c34d60 fix for crash on moving element in diagram,
> Break the recursive event loop in UMLScene::mouseMoveEvent().

umbrello/umlscene.cpp function mouseMoveEvent
- Apparently the recursive loop is not limited to pre Qt5 versions.
  Remove #if QT_VERSION < 0x050000 preprocessor guard, i.e  make the
  previously #if dependent code unconditional. Remove #else part.

CCBUG: 416013
parent afe54199
......@@ -949,15 +949,11 @@ void UMLScene::dropEvent(QGraphicsSceneDragDropEvent *e)
*/
void UMLScene::mouseMoveEvent(QGraphicsSceneMouseEvent* ome)
{
#if QT_VERSION < 0x050000
if (m_d->inMouseMoveEvent)
return;
m_d->inMouseMoveEvent = true;
m_d->toolBarState->mouseMove(ome);
m_d->inMouseMoveEvent = false;
#else
m_d->toolBarState->mouseMove(ome);
#endif
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment