Commit acc0d0ad authored by Albert Astals Cid's avatar Albert Astals Cid

Fix answers marked as correct showing up when "Repeating Errors"

The old code was removingLast from a temporary ^_^

BUGS: 421280
parent 7ea0441f
......@@ -474,6 +474,12 @@ QString KWQQuizModel::kbAnswer()
}
void KWQQuizModel::removeLastError()
{
m_errorList.removeLast();
}
int KWQQuizModel::questionCount()
{
return m_questionCount;
......
......@@ -77,6 +77,7 @@ public:
QString kbAnswer();
QList<int> errorList() const {return m_errorList;}
void removeLastError();
signals:
void checkingAnswer(int );
......
......@@ -286,7 +286,7 @@ void QAView::slotSpecChar( const QChar & c)
void QAView::slotMarkLastCorrect( )
{
m_quiz->errorList().removeLast();
m_quiz->removeLastError();
score->swapCount();
m_actionCollection->action(QStringLiteral("qa_mark_last_correct"))->setEnabled(false);
}
Markdown is supported
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