Skip to content

Commit e8debf9

Browse files
author
Hussam Eddin Alhomsi
committed
Fix horizontal track resizing.
Fixes a regression from PR #3878 that broke horizontal track resizing.
1 parent c102fa8 commit e8debf9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/core/Track.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,11 +2745,6 @@ void TrackView::dropEvent( QDropEvent * de )
27452745
*/
27462746
void TrackView::mousePressEvent( QMouseEvent * me )
27472747
{
2748-
if( me->x()>10 ) // 10 = The width of the grip + 2 pixels to the left and right.
2749-
{
2750-
QWidget::mousePressEvent( me );
2751-
return;
2752-
}
27532748

27542749
// If previously dragged too small, restore on shift-leftclick
27552750
if( height() < DEFAULT_TRACK_HEIGHT &&
@@ -2781,6 +2776,12 @@ void TrackView::mousePressEvent( QMouseEvent * me )
27812776
}
27822777
else
27832778
{
2779+
if( me->x()>10 ) // 10 = The width of the grip + 2 pixels to the left and right.
2780+
{
2781+
QWidget::mousePressEvent( me );
2782+
return;
2783+
}
2784+
27842785
m_action = MoveTrack;
27852786

27862787
QCursor c( Qt::SizeVerCursor );

0 commit comments

Comments
 (0)