Merged from trunk:

------------------------------------------------------------------------
r7848 | bsomervi | 2017-07-11 02:59:19 +0100 (Tue, 11 Jul 2017) | 4 lines

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-1.8@7899 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville
2017-07-16 15:01:02 +00:00
parent fd2d94cc7e
commit a66e644cba
4 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ bool FrequencyList::impl::setData (QModelIndex const& model_index, QVariant cons
case region_column:
if (value.canConvert<Region> ())
{
auto region = IARURegions::value (value.toString ());
auto region = static_cast<Region> (value.toUInt ());
if (region != item.region_)
{
item.region_ = region;