Commit 954c1a2d authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix crash when "Wait for validation" is not enabled

Qt is not happy that we're deleting a radio button from a slot connected
to QAbstractButton::toggled, which makes sense, since it's probably not
finished internally, so now we do a delayed invokation of
boxAsker::checkAnswer that is the method that may ultimately end up
deleting the radio button, but this way it runs when Qt is finished
processing the toggled change

BUGS: 435555
parent e9902d7c
......@@ -217,7 +217,7 @@ void boxAsker::nextQuestionHook(const division *div)
void boxAsker::atLeastOneSelected()
if ( ! kgeographySettings::self() -> waitsForValidation() )
QMetaObject::invokeMethod(this, &boxAsker::checkAnswer, Qt::QueuedConnection);
p_accept -> setEnabled(true);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment