Skip to content

Commit

Permalink
fixup! add PlayButton: drop previewing HotcueButton onto it to latch …
Browse files Browse the repository at this point in the history
…`play`
  • Loading branch information
ronso0 committed Jan 30, 2025
1 parent 224400c commit 06c5d1f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/widget/wplaybutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ WPlayButton::WPlayButton(QWidget* pParent, const QString& group)
}

void WPlayButton::dragEnterEvent(QDragEnterEvent* pEvent) {
if (isValidHotcueDragOrDropEvent(
pEvent,
this,
m_group)) {
if (isValidHotcueDragEvent(pEvent, m_group)) {
pEvent->acceptProposedAction();
} else {
pEvent->ignore();
Expand All @@ -30,10 +27,7 @@ void WPlayButton::dropEvent(QDropEvent* pEvent) {
// previewing it but NOT playing.
// If not previewing this is no-op.
if (ControlObject::get(ConfigKey(m_group, QStringLiteral("play_latched"))) <= 0 &&
isValidHotcueDragOrDropEvent(
pEvent,
this,
m_group)) {
isValidHotcueDropEvent(pEvent, m_group, this)) {
// This seems counterintuitive but it's the same action that
// allows to latch `play` with keyboard or controllers while
// previewing a hotcue.
Expand Down

0 comments on commit 06c5d1f

Please sign in to comment.