2023-09-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed bugs in 'RDSoundPanel' affecting drag-and-drop operation.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-09-27 14:53:11 -04:00
parent f49d03682b
commit 901d93aabe
4 changed files with 13 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
//
// The SoundPanel Button for RDAirPlay.
//
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -383,7 +383,7 @@ void RDPanelButton::mousePressEvent(QMouseEvent *e)
void RDPanelButton::mouseMoveEvent(QMouseEvent *e)
{
button_move_count--;
if(button_move_count==0) {
if(button_allow_drags&&(button_move_count==0)) {
QPushButton::mouseReleaseEvent(e);
QDrag *drag=new QDrag(this);
RDCartDrag *cd=new RDCartDrag(button_cart,button_text,button_color);