summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-30 03:01:30 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-04-30 03:01:30 +0200
commit5e8cd8ce5985501d9b220760f7f63901417b9299 (patch)
tree75234c366e2f80ad1cd04885503b15c578010e76 /examples
parentc4baab78983f803a6956d10fb5ae53731340ab41 (diff)
parent673495d2eb1fe9cdf701351d75c2203c80ab6ba5 (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'examples')
-rw-r--r--examples/serialbus/can/sendframebox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/serialbus/can/sendframebox.cpp b/examples/serialbus/can/sendframebox.cpp
index 117ff10..13042d0 100644
--- a/examples/serialbus/can/sendframebox.cpp
+++ b/examples/serialbus/can/sendframebox.cpp
@@ -72,7 +72,7 @@ QValidator::State HexIntegerValidator::validate(QString &input, int &) const
bool ok;
uint value = input.toUInt(&ok, 16);
- if (!value)
+ if (input.isEmpty())
return Intermediate;
if (!ok || value > m_maximum)