2021-03-21 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDMarkerView' that caused a save prompt to
	appear when no data had been changed.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-03-21 17:16:05 -04:00
parent 7fa89422cf
commit c882f1bd71
2 changed files with 6 additions and 3 deletions

View File

@ -21317,3 +21317,6 @@
* Added a 'No Fade on Segue Out' checkbox to 'RDMarkerDialog'.
2021-03-21 Fred Gleason <fredg@paravelsystems.com>
* Changed the color of the audio cursor in 'RDMarkerDialog' to green.
2021-03-21 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDMarkerView' that caused a save prompt to
appear when no data had been changed.

View File

@ -27,7 +27,7 @@
#include "rdescape_string.h"
#include "rdmarkerview.h"
#define LEFT_MARGIN 20
#define LEFT_MARGIN 30
RDMarkerHandle::RDMarkerHandle(RDMarkerHandle::PointerRole role,
PointerType type,void *mkrview,
@ -562,14 +562,14 @@ void RDMarkerView::updatePosition(RDMarkerHandle::PointerRole role, int ptr)
void RDMarkerView::setNoSegueFade(bool state)
{
d_has_unsaved_changes=state==d_no_segue_fade;
d_has_unsaved_changes=state!=d_no_segue_fade;
d_no_segue_fade=state;
}
void RDMarkerView::setPlayGain(int db)
{
d_has_unsaved_changes=db==d_play_gain;
d_has_unsaved_changes=db!=d_play_gain;
d_play_gain=db;
}