diff --git a/src/database/annotation.cpp b/src/database/annotation.cpp index fcd5f357..853b67f9 100644 --- a/src/database/annotation.cpp +++ b/src/database/annotation.cpp @@ -17,7 +17,7 @@ void Annotation::toggle(const QString& e) int n = l.indexOf(e); if (n>=0) { - l.remove(n); + l.removeAt(n); } else { @@ -32,7 +32,7 @@ void Annotation::removeOne(const QRegularExpression& re) int n = l.indexOf(re); if (n>=0) { - l.remove(n); + l.removeAt(n); } annotation = l.join(','); }