mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user