mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
Squash a compiler warning that was also a potential defect
This commit is contained in:
parent
a9fd073023
commit
cee3c9796f
@ -10,7 +10,7 @@ QValidator::State RestrictedSpinBox::validate (QString& input, int& pos) const
|
||||
// start by doing the standard QSpinBox validation
|
||||
auto valid = HintedSpinBox::validate (input, pos);
|
||||
// extra validation
|
||||
if (QValidator::Acceptable
|
||||
if (QValidator::Acceptable == valid
|
||||
&& values ().end () == std::find (values ().begin (), values ().end (), valueFromText (input)))
|
||||
{
|
||||
valid = QValidator::Intermediate;
|
||||
|
Loading…
Reference in New Issue
Block a user