summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)