mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-12 02:39:30 -04:00
Fixes the issue with the IARU Region setting not being saved and restored correctly
Use proper QDataStream insertor and extractor for IARURegions::Region enum. Unfortunately this requires that all will have to reset their region one more time even if it was working and correct. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7867 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+2
-2
@@ -1270,7 +1270,7 @@ void Configuration::impl::read_settings ()
|
||||
|
||||
macros_.setStringList (settings_->value ("Macros", QStringList {"TNX 73 GL"}).toStringList ());
|
||||
|
||||
region_ = settings_->value ("Region", IARURegions::ALL).value<IARURegions::Region> ();
|
||||
region_ = settings_->value ("Region", QVariant::fromValue (IARURegions::ALL)).value<IARURegions::Region> ();
|
||||
|
||||
if (settings_->contains ("FrequenciesForRegionModes"))
|
||||
{
|
||||
@@ -1434,7 +1434,7 @@ void Configuration::impl::write_settings ()
|
||||
settings_->setValue ("CalibrationSlopePPM", frequency_calibration_slope_ppm_);
|
||||
settings_->setValue ("pwrBandTxMemory", pwrBandTxMemory_);
|
||||
settings_->setValue ("pwrBandTuneMemory", pwrBandTuneMemory_);
|
||||
settings_->setValue ("Region", region_);
|
||||
settings_->setValue ("Region", QVariant::fromValue (region_));
|
||||
}
|
||||
|
||||
void Configuration::impl::set_rig_invariants ()
|
||||
|
||||
Reference in New Issue
Block a user