mirror of https://github.com/procxx/kepka.git
Fix schedule time selection.
This commit is contained in:
parent
7be1c4ca2f
commit
16b786186b
|
@ -137,7 +137,7 @@ private:
|
||||||
|
|
||||||
QTime ValidateTime(const QString &value) {
|
QTime ValidateTime(const QString &value) {
|
||||||
const auto match = QRegularExpression(
|
const auto match = QRegularExpression(
|
||||||
"^(\\d\\d)\\:(\\d\\d)$").match(value);
|
"^(\\d{1,2})\\:(\\d\\d)$").match(value);
|
||||||
if (!match.hasMatch()) {
|
if (!match.hasMatch()) {
|
||||||
return QTime();
|
return QTime();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue