Fix validation of created poll.

This commit is contained in:
John Preston 2020-01-24 18:29:53 +03:00
parent 1d85416434
commit 9aa597d6f0
1 changed files with 1 additions and 1 deletions

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 {