Skip to content

Commit

Permalink
Fix horizontal track resizing.
Browse files Browse the repository at this point in the history
Fixes a regression from PR #3878 that broke horizontal track resizing.
  • Loading branch information
Hussam Eddin Alhomsi committed Nov 17, 2017
1 parent c102fa8 commit e8debf9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2745,11 +2745,6 @@ void TrackView::dropEvent( QDropEvent * de )
*/
void TrackView::mousePressEvent( QMouseEvent * me )
{
if( me->x()>10 ) // 10 = The width of the grip + 2 pixels to the left and right.
{
QWidget::mousePressEvent( me );
return;
}

// If previously dragged too small, restore on shift-leftclick
if( height() < DEFAULT_TRACK_HEIGHT &&
Expand Down Expand Up @@ -2781,6 +2776,12 @@ void TrackView::mousePressEvent( QMouseEvent * me )
}
else
{
if( me->x()>10 ) // 10 = The width of the grip + 2 pixels to the left and right.
{
QWidget::mousePressEvent( me );
return;
}

m_action = MoveTrack;

QCursor c( Qt::SizeVerCursor );
Expand Down

0 comments on commit e8debf9

Please sign in to comment.