Fix validation of created poll.
This commit is contained in:
parent
1d85416434
commit
9aa597d6f0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue