Browse files

Force fft/zoom change signal to setup initial state

This wasn't a problem before as setDefaults would force
a changed signal. Now with settings saving it's possible
for the saved setting to be the same as the initial slider
position and a changed event is not emitted.

This leads to a case where the rest of the app doesn't get
synced up and causes a crash.

Fixes #109
  • Loading branch information...
1 parent 5c9dca7 commit 90e45fb073604a47ab144b33d1b74c342e6f1fe5 @miek committed Dec 19, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 spectrogramcontrols.cpp
@@ -119,6 +119,8 @@ void SpectrogramControls::cursorsStateChanged(int state)
void SpectrogramControls::setDefaults()
+ fftOrZoomChanged();

0 comments on commit 90e45fb

Please sign in to comment.