From 9aa597d6f0a7212c28dd6400bcbf419bae067ecc Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 24 Jan 2020 18:29:53 +0300 Subject: [PATCH] Fix validation of created poll. --- Telegram/SourceFiles/boxes/create_poll_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/create_poll_box.cpp b/Telegram/SourceFiles/boxes/create_poll_box.cpp index a8b3f3d18..4b37d38c6 100644 --- a/Telegram/SourceFiles/boxes/create_poll_box.cpp +++ b/Telegram/SourceFiles/boxes/create_poll_box.cpp @@ -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 {