From 31d27d20994a959e0caebf35e7f26c314ff0f529 Mon Sep 17 00:00:00 2001 From: Steffen Baranowsky Date: Tue, 3 Oct 2017 00:53:49 +0200 Subject: [PATCH] don't allow dragging TCOs in BBEditor (#3832) * don't allow dragging TCOs in BBEditor * change bbtrack detecting * code improvements --- src/core/Track.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index 55021fd6e..c2133f384 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -688,7 +688,7 @@ void TrackContentObjectView::paintTextLabel(QString const & text, QPainter & pai void TrackContentObjectView::mousePressEvent( QMouseEvent * me ) { setInitialMousePos( me->pos() ); - if( me->button() == Qt::LeftButton ) + if( !fixedTCOs() && me->button() == Qt::LeftButton ) { if( me->modifiers() & Qt::ControlModifier ) { @@ -776,7 +776,7 @@ void TrackContentObjectView::mousePressEvent( QMouseEvent * me ) { m_tco->toggleMute(); } - else if( me->modifiers() & Qt::ShiftModifier && fixedTCOs() == false ) + else if( me->modifiers() & Qt::ShiftModifier && !fixedTCOs() ) { remove(); } @@ -787,7 +787,7 @@ void TrackContentObjectView::mousePressEvent( QMouseEvent * me ) { m_tco->toggleMute(); } - else if( fixedTCOs() == false ) + else if( !fixedTCOs() ) { remove(); }