diff --git a/src/waveform/waveformwidgetfactory.cpp b/src/waveform/waveformwidgetfactory.cpp index 31af1d9f6ae..5a8db447e62 100644 --- a/src/waveform/waveformwidgetfactory.cpp +++ b/src/waveform/waveformwidgetfactory.cpp @@ -549,6 +549,7 @@ bool WaveformWidgetFactory::setWidgetType( // type is acceptable *pCurrentType = type; if (m_config) { + m_configType = type; m_config->setValue( ConfigKey("[Waveform]", "WaveformType"), static_cast(*pCurrentType)); @@ -559,6 +560,7 @@ bool WaveformWidgetFactory::setWidgetType( // fallback *pCurrentType = WaveformWidgetType::EmptyWaveform; if (m_config) { + m_configType = *pCurrentType; m_config->setValue( ConfigKey("[Waveform]", "WaveformType"), static_cast(*pCurrentType));