2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix validation of created poll.

This commit is contained in:
John Preston
2020-01-24 18:29:53 +03:00
parent 1d85416434
commit 9aa597d6f0

View File

@@ -546,10 +546,10 @@ void Options::enableChooseCorrect(bool enabled) {
_chooseCorrectGroup = enabled
? createChooseCorrectGroup()
: nullptr;
validateState();
for (auto &option : _list) {
option->enableChooseCorrect(_chooseCorrectGroup);
}
validateState();
}
bool Options::correctShadows() const {