Skip to content

Commit

Permalink
[Fix] Pattern tab: Avoid channel header buttons being kept in a press…
Browse files Browse the repository at this point in the history
…ed state after right-click action.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22299 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 24, 2024
1 parent 46987e7 commit ec0bf7c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions mptrack/View_pat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1468,14 +1468,22 @@ void CViewPattern::OnRButtonUp(UINT flags, CPoint pt)
modDoc->ToggleChannelRecordGroup(sourceChn, RecordGroup::Group2);
InvalidateChannelsHeaders(sourceChn);
}
m_Status.reset(psShiftDragging);
return;
}
break;
default:
break;
}

if(m_nDragItem.IsValid())
{
m_nDragItem = {};
InvalidateRect(&m_rcDragItem, FALSE);
}
if(m_Status[psShiftDragging])
{
m_Status.reset(psShiftDragging);
return;
}

HMENU hMenu = ::CreatePopupMenu();
if(hMenu == nullptr)
return;
Expand Down

0 comments on commit ec0bf7c

Please sign in to comment.