2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +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 _chooseCorrectGroup = enabled
? createChooseCorrectGroup() ? createChooseCorrectGroup()
: nullptr; : nullptr;
validateState();
for (auto &option : _list) { for (auto &option : _list) {
option->enableChooseCorrect(_chooseCorrectGroup); option->enableChooseCorrect(_chooseCorrectGroup);
} }
validateState();
} }
bool Options::correctShadows() const { bool Options::correctShadows() const {