mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-23 13:45:00 +00:00
fix comparison
This commit is contained in:
1 parent
ff2032cca1
commit
6b8244f3c4
1 file changed
+2
-2
@@ -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