|
|
|
@ -597,7 +597,7 @@ strFileName = QFileDialog::getOpenFileName(this, tr("Öffne Datei zum Fragenkata
|
|
|
|
|
QString strText = pQuestion->text();
|
|
|
|
|
int idx = strText.indexOf(QRegExp("\\([A-Z]\\)"));
|
|
|
|
|
if (idx == -1) continue;
|
|
|
|
|
int iCorrect = pQuestion->text().at(idx+1).toAscii() - 'A';
|
|
|
|
|
int iCorrect = pQuestion->text().at(idx+1).toLatin1() - 'A';
|
|
|
|
|
if (pQuestion->countAnswer() > iCorrect)
|
|
|
|
|
pQuestion->answerAt(iCorrect).setCorrect(true);
|
|
|
|
|
strText.remove(idx, 3);
|
|
|
|
|