mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix schedule time selection.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user