From 550eb7e8a8bd490d29383bc58f0822a477f24a02 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 25 Jul 2014 22:13:52 +0000 Subject: [PATCH] TXAudioSource was not being saved as an enum in settings. The TXAudioSource was being saved as a boolean value instead of the enumeration value. This caused the read back from settings logic to fail silently. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4220 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- Configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration.cpp b/Configuration.cpp index 73bbd4131..ae4ee968d 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -1088,7 +1088,7 @@ void Configuration::impl::write_settings () settings_->setValue ("Tx2QSO", TX_messages_); settings_->setValue ("DTR", rig_params_.CAT_DTR_always_on_); settings_->setValue ("RTS", rig_params_.CAT_RTS_always_on_); - settings_->setValue ("TXAudioSource", TransceiverFactory::TX_audio_source_rear == rig_params_.TX_audio_source_); + settings_->setValue ("TXAudioSource", QVariant::fromValue (rig_params_.TX_audio_source_)); settings_->setValue ("Polling", rig_params_.CAT_poll_interval_); settings_->setValue ("SplitMode", QVariant::fromValue (rig_params_.split_mode_)); }