mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
fix comparison
This commit is contained in:
parent
ff2032cca1
commit
6b8244f3c4
@ -110,10 +110,10 @@ void QCronScheduler::QCronField::fromRange(const QString &_range,
|
|||||||
qCDebug(LOG_LIB) << "Parse field from range" << _range
|
qCDebug(LOG_LIB) << "Parse field from range" << _range
|
||||||
<< "with corner values" << _min << _max;
|
<< "with corner values" << _min << _max;
|
||||||
|
|
||||||
if (_range == '*') {
|
if (_range == "*") {
|
||||||
minValue = _min;
|
minValue = _min;
|
||||||
maxValue = _max;
|
maxValue = _max;
|
||||||
} else if (_range.contains('-')) {
|
} else if (_range.contains("-")) {
|
||||||
auto interval = _range.split('-', QString::SkipEmptyParts);
|
auto interval = _range.split('-', QString::SkipEmptyParts);
|
||||||
if (interval.count() != 2)
|
if (interval.count() != 2)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user