Skip to content
Snippets Groups Projects
Commit 9705124a authored by Milian Wolff's avatar Milian Wolff
Browse files

prevent assert in outdated annotation line

TODO: needs a proper fix

CCBUG: 269757
parent 88b02d3f
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,12 @@ QVariant VcsAnnotationModel::data( int line, Qt::ItemDataRole role ) const
VcsRevision VcsAnnotationModel::revisionForLine( int line ) const
{
///FIXME: update the annotation bar on edit/reload somehow
///BUG: https://bugs.kde.org/show_bug.cgi?id=269757
if (!d->m_annotation.containsLine()) {
return VcsRevision();
}
Q_ASSERT(line > 0 && d->m_annotation.containsLine( line ));
return d->m_annotation.line( line ).revision();
}
......
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