[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kwordquiz/src
From:       Peter Hedlund <peter () peterandlinda ! com>
Date:       2009-12-06 22:05:22
Message-ID: 1260137122.591765.32487.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1059543 by hedlund:

Prevent freezing in multiple choice when trying to repeat errors.

 M  +4 -1      kwqquizmodel.cpp  


--- trunk/KDE/kdeedu/kwordquiz/src/kwqquizmodel.cpp #1059542:1059543
@@ -85,7 +85,10 @@
 
 bool KWQQuizModel::hasErrors()
 {
-  return !m_errorList.isEmpty();
+    if (m_quizType == Prefs::EnumStartSession::MultipleChoice)
+        return m_errorList.count() > 2; //this is a hack until better multiple choice is written
+    else
+        return !m_errorList.isEmpty();
 }
 
 bool KWQQuizModel::init()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic