Minor improvement

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3550 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-12-14 15:14:24 +00:00
parent 15261ba896
commit 0cc1424f90

View File

@@ -179,10 +179,11 @@ void ElementTextItem::adjustItemPosition(int new_block_count) {
*/
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);