diff --git a/src/playlist/playlistmanager.cpp b/src/playlist/playlistmanager.cpp index 1048e47d1..5a3807a7d 100644 --- a/src/playlist/playlistmanager.cpp +++ b/src/playlist/playlistmanager.cpp @@ -203,6 +203,9 @@ void PlaylistManager::UpdateSummaryText() { // Get the length of the selected tracks foreach (const QItemSelectionRange& range, current_selection_) { + if (!range.isValid()) + continue; + selected += range.bottom() - range.top() + 1; for (int i=range.top() ; i<=range.bottom() ; ++i) { int length = range.model()->index(i, Playlist::Column_Length).data().toInt();