Skip to content

Commit

Permalink
don't allow dragging TCOs in BBEditor (LMMS#3832)
Browse files Browse the repository at this point in the history
* don't allow dragging TCOs in BBEditor

* change bbtrack detecting

* code improvements
  • Loading branch information
BaraMGB authored and Umcaruje committed Oct 2, 2017
1 parent cbd1458 commit e3ebcba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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();
}
Expand All @@ -787,7 +787,7 @@ void TrackContentObjectView::mousePressEvent( QMouseEvent * me )
{
m_tco->toggleMute();
}
else if( fixedTCOs() == false )
else if( !fixedTCOs() )
{
remove();
}
Expand Down

0 comments on commit e3ebcba

Please sign in to comment.