summaryrefslogtreecommitdiff
path: root/map65/Radio.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-06-22 12:03:44 +0200
committerChristoph Berg <myon@debian.org>2026-06-22 12:03:44 +0200
commitd83a420f0517d7fc47aeb288a6a0cf4891784fcc (patch)
tree6d9c83527c56458a8360ba080bf5f4ca73d526dc /map65/Radio.cpp
parent4b089ae3f7e9e2d5662f718f663b26a4e8ee63ca (diff)
New upstream version 3.0.2+dfsgupstream/3.0.2+dfsg
Diffstat (limited to 'map65/Radio.cpp')
-rw-r--r--map65/Radio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/map65/Radio.cpp b/map65/Radio.cpp
index 5ee29040..e90f5b3f 100644
--- a/map65/Radio.cpp
+++ b/map65/Radio.cpp
@@ -33,7 +33,7 @@ namespace Radio
Frequency frequency (QVariant const& v, int scale, bool * ok, QLocale const& locale)
{
double value {0.};
- if (QVariant::String == v.type ())
+ if (QMetaType::QString == v.userType())
{
value = locale.toDouble (v.value<QString> (), ok);
}
@@ -70,7 +70,7 @@ namespace Radio
FrequencyDelta frequency_delta (QVariant const& v, int scale, bool * ok, QLocale const& locale)
{
double value {0.};
- if (QVariant::String == v.type ())
+ if (QMetaType::QString == v.userType())
{
value = locale.toDouble (v.value<QString> (), ok);
}