mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-12 02:39:30 -04:00
Use model row to express region rather than name string
For some unknown reason on some machines the string version of the name does not match the model IARURegions names. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7848 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+3
-3
@@ -237,7 +237,7 @@ public:
|
||||
{
|
||||
return {frequency_line_edit_.frequency ()
|
||||
, Modes::value (mode_combo_box_.currentText ())
|
||||
, IARURegions::value (region_combo_box_.currentText ())};
|
||||
, IARURegions::value (region_combo_box_.currentIndex ())};
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -1143,7 +1143,7 @@ void Configuration::impl::initialize_models ()
|
||||
ui_->PTT_port_combo_box->setCurrentText (rig_params_.ptt_port);
|
||||
}
|
||||
|
||||
ui_->region_combo_box->setCurrentText (regions_.name (region_));
|
||||
ui_->region_combo_box->setCurrentIndex (region_);
|
||||
|
||||
next_macros_.setStringList (macros_.stringList ());
|
||||
next_frequencies_.frequency_list (frequencies_.frequency_list ());
|
||||
@@ -1848,7 +1848,7 @@ void Configuration::impl::accept ()
|
||||
macros_.setStringList (next_macros_.stringList ());
|
||||
}
|
||||
|
||||
region_ = regions_.value (ui_->region_combo_box->currentText ());
|
||||
region_ = IARURegions::value (ui_->region_combo_box->currentIndex ());
|
||||
|
||||
if (frequencies_.frequency_list () != next_frequencies_.frequency_list ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user