Skip to content
Snippets Groups Projects
Commit 6c251199 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Invoke properly method finishCorrection() when only key signature was wrong...

Invoke properly method finishCorrection() when only key signature was wrong and corrected. It fix  displaying 'what next tip' after
parent bdf7a176
No related branches found
No related tags found
No related merge requests found
......@@ -805,6 +805,7 @@ void TmainScore::strikeBlinkingFinished() {
m_strikeOut = 0;
}
delete m_bliking;
m_bliking = 0;
if (m_correctNoteNr < 0) {
qDebug() << "TmainScore::strikeBlinkingFinished has wrong note number. Fix it!";
return;
......@@ -833,14 +834,19 @@ void TmainScore::keyBlinkingFinished() {
m_keyBlinking->startBlinking(3); // and blink again
} else { // finished 2nd time
delete m_keyBlinking;
m_keyBlinking = 0;
if (!m_strikeOut && !m_bliking) // no other animations that will emit correctingFinished()
QTimer::singleShot(100, this, SLOT(finishCorrection())); // it might be invoked even immediately
}
}
void TmainScore::finishCorrection() {
noteFromId(m_correctNoteNr)->enableNoteAnim(false);
noteFromId(m_correctNoteNr)->markNote(QColor(Tcore::gl()->EanswerColor.lighter().name()));
m_correctNoteNr = -1;
if (m_correctNoteNr > -1) {
noteFromId(m_correctNoteNr)->enableNoteAnim(false);
noteFromId(m_correctNoteNr)->markNote(QColor(Tcore::gl()->EanswerColor.lighter().name()));
m_correctNoteNr = -1;
}
emit correctingFinished();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment