mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-01 07:55:53 +00:00
fix comparison
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user