diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /models/StationList.cpp | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'models/StationList.cpp')
| -rw-r--r-- | models/StationList.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/StationList.cpp b/models/StationList.cpp index 2b501259..308acf4e 100644 --- a/models/StationList.cpp +++ b/models/StationList.cpp @@ -412,9 +412,10 @@ bool StationList::impl::setData (QModelIndex const& model_index, QVariant const& case offset_column: { - if (value.canConvert<FrequencyDelta> ()) + bool ok; + FrequencyDelta offset {value.toLongLong (&ok)}; + if (ok) { - FrequencyDelta offset {qvariant_cast<Radio::FrequencyDelta> (value)}; if (offset != stations_[row].offset_) { stations_[row].offset_ = offset; |
