From 90b1360f183d3f2a73a3b11ceaf76773cd9200eb Mon Sep 17 00:00:00 2001 From: Hussam Eddin Alhomsi Date: Fri, 17 Nov 2017 10:31:59 +0300 Subject: [PATCH] Fix horizontal track resizing. Fixes a regression from PR #3878 that broke horizontal track resizing. --- src/core/Track.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index 6fb555a430e..816cbafdf83 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -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 && @@ -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 );