summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/toolbarstatemessages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/toolbarstatemessages.cpp')
-rw-r--r--umbrello/umbrello/toolbarstatemessages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/umbrello/umbrello/toolbarstatemessages.cpp b/umbrello/umbrello/toolbarstatemessages.cpp
index f8e5930a..47c5a387 100644
--- a/umbrello/umbrello/toolbarstatemessages.cpp
+++ b/umbrello/umbrello/toolbarstatemessages.cpp
@@ -85,7 +85,7 @@ void ToolBarStateMessages::setCurrentElement() {
void ToolBarStateMessages::mouseReleaseWidget() {
//TODO When an association between UMLObjects of invalid types is made, an error message
//is shown. Shouldn't also a message be used here?
- if (m_pMouseEvent->button() != Qt::LeftButton ||
+ if (m_pMouseEvent->button() != TQt::LeftButton ||
getCurrentWidget()->getBaseType() != Uml::wt_Object) {
cleanMessage();
return;