From 351ee83b9a3df810d41fd155728d10ae39d5aa6d Mon Sep 17 00:00:00 2001 From: Massimo Callegari Date: Fri, 31 May 2024 17:35:49 +0200 Subject: [PATCH] vc/slider: copy playback flash status (fix #1580) --- ui/src/virtualconsole/vcslider.cpp | 5 ++++- ui/src/virtualconsole/vcslider.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/virtualconsole/vcslider.cpp b/ui/src/virtualconsole/vcslider.cpp index fcfc70d0bb..676951d94a 100644 --- a/ui/src/virtualconsole/vcslider.cpp +++ b/ui/src/virtualconsole/vcslider.cpp @@ -282,6 +282,9 @@ bool VCSlider::copyFrom(const VCWidget* widget) /* Copy monitor mode */ setChannelsMonitorEnabled(slider->channelsMonitorEnabled()); + /* Copy flash enabling */ + setPlaybackFlashEnable(slider->playbackFlashEnable()); + /* Copy common stuff */ return VCWidget::copyFrom(widget); } @@ -1034,7 +1037,7 @@ void VCSlider::notifyFunctionStarting(quint32 fid, qreal functionIntensity) } } -bool VCSlider::playbackFlashEnable() +bool VCSlider::playbackFlashEnable() const { return m_playbackFlashEnable; } diff --git a/ui/src/virtualconsole/vcslider.h b/ui/src/virtualconsole/vcslider.h index 6e9c8c10cb..280b498eae 100644 --- a/ui/src/virtualconsole/vcslider.h +++ b/ui/src/virtualconsole/vcslider.h @@ -395,7 +395,7 @@ protected slots: virtual void notifyFunctionStarting(quint32 fid, qreal intensity); /** Get/Set the status of the flash button enablement */ - bool playbackFlashEnable(); + bool playbackFlashEnable() const; void setPlaybackFlashEnable(bool enable); protected: