mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-24 11:40:31 -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
|
// start by doing the standard QSpinBox validation
|
||||||
auto valid = HintedSpinBox::validate (input, pos);
|
auto valid = HintedSpinBox::validate (input, pos);
|
||||||
// extra validation
|
// extra validation
|
||||||
if (QValidator::Acceptable
|
if (QValidator::Acceptable == valid
|
||||||
&& values ().end () == std::find (values ().begin (), values ().end (), valueFromText (input)))
|
&& values ().end () == std::find (values ().begin (), values ().end (), valueFromText (input)))
|
||||||
{
|
{
|
||||||
valid = QValidator::Intermediate;
|
valid = QValidator::Intermediate;
|
||||||
|
Loading…
Reference in New Issue
Block a user