From 06c5d1f711a9c78e7463ba771f0df8ca4b04f327 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Thu, 30 Jan 2025 22:39:04 +0100 Subject: [PATCH] fixup! add PlayButton: drop previewing HotcueButton onto it to latch `play` --- src/widget/wplaybutton.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/widget/wplaybutton.cpp b/src/widget/wplaybutton.cpp index f62b4f2e93f..d7908f080b4 100644 --- a/src/widget/wplaybutton.cpp +++ b/src/widget/wplaybutton.cpp @@ -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(); @@ -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.