[qet] [3550] Minor improvement

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3550
Author:   blacksun
Date:     2014-12-14 16:14:24 +0100 (Sun, 14 Dec 2014)
Log Message:
-----------
Minor improvement

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/elementtextitem.cpp

Modified: trunk/sources/qetgraphicsitem/elementtextitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/elementtextitem.cpp	2014-12-14 14:36:12 UTC (rev 3549)
+++ trunk/sources/qetgraphicsitem/elementtextitem.cpp	2014-12-14 15:14:24 UTC (rev 3550)
@@ -179,10 +179,11 @@
  */
 void ElementTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
 {
-	if (tagg_ == "label" || parent_element_ -> linkType() & Element::AllReport)
+	if ( (tagg_ == "label" || parent_element_ -> linkType() & Element::AllReport) && !parent_element_ -> isFree())
 	{
 			//If parent is linked, show the linked element
-		if (parent_element_ -> linkType() & (Element::AllReport | Element::Slave) && !parent_element_ -> isFree()) {
+		if ( parent_element_ -> linkType() & (Element::AllReport | Element::Slave) )
+		{
 				//Unselect and ungrab mouse to prevent unwanted
 				//move when linked element is in the same scene of this.
 			setSelected(false);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/