Fix schedule time selection.

This commit is contained in:
John Preston 2019-08-31 14:21:52 +03:00
parent 7be1c4ca2f
commit 16b786186b

View file

@ -137,7 +137,7 @@ private:
QTime ValidateTime(const QString &value) {
const auto match = QRegularExpression(
"^(\\d\\d)\\:(\\d\\d)$").match(value);
"^(\\d{1,2})\\:(\\d\\d)$").match(value);
if (!match.hasMatch()) {
return QTime();
}