Commit af6d8076 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove this check hr==0 as it's already check before and return

parent 82369401
Pipeline #84039 failed with stage
in 6 minutes and 58 seconds
......@@ -291,7 +291,7 @@ QValidator::State TimeSpinBox::validate(QString& text, int&) const
{
if (hr == 0)
return QValidator::Intermediate;
if (hr == 0 || hr > 12)
if (hr > 12)
hr = 100; // error;
else if (hr == 12)
hr = 0; // convert 12:nn to 0:nn
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment