diff options
Diffstat (limited to 'umbrello/umbrello/toolbarstateassociation.cpp')
-rw-r--r-- | umbrello/umbrello/toolbarstateassociation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/umbrello/umbrello/toolbarstateassociation.cpp b/umbrello/umbrello/toolbarstateassociation.cpp index 36017912..9129740a 100644 --- a/umbrello/umbrello/toolbarstateassociation.cpp +++ b/umbrello/umbrello/toolbarstateassociation.cpp @@ -72,7 +72,7 @@ void ToolBarStateAssociation::slotWidgetRemoved(UMLWidget* widget) { } void ToolBarStateAssociation::mouseReleaseAssociation() { - if (m_pMouseEvent->button() != Qt::LeftButton || + if (m_pMouseEvent->button() != TQt::LeftButton || !m_firstWidget || m_firstWidget->getBaseType() != Uml::wt_Class) { cleanAssociation(); return; @@ -85,7 +85,7 @@ void ToolBarStateAssociation::mouseReleaseAssociation() { } void ToolBarStateAssociation::mouseReleaseWidget() { - if (m_pMouseEvent->button() != Qt::LeftButton) { + if (m_pMouseEvent->button() != TQt::LeftButton) { cleanAssociation(); return; } |