|
From: Tapio V. <aa...@us...> - 2011-02-28 09:28:05
|
Author: Tapio Vierros <tap...@gm...>
Date: Mon Feb 28 11:27:14 2011 +0200
Select first note when starting playback if no existing selection.
---
editorapp.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/editorapp.cc b/editorapp.cc
index 06593fd..3dbe4ce 100644
--- a/editorapp.cc
+++ b/editorapp.cc
@@ -831,7 +831,8 @@ void EditorApp::playerStateChanged(Phonon::State newstate, Phonon::State oldstat
if (player) errst += " " + player->errorString();
QMessageBox::critical(this, tr("Playback error"), errst);
}
- }
+ } else if (!noteGraph->selectedNote() && !noteGraph->noteLabels().isEmpty())
+ noteGraph->selectNote(noteGraph->noteLabels().front());
}
void EditorApp::playBuffer(const QByteArray& buffer)
|