Fix an assertion when there are no tags

This commit is contained in:
Michael Zanetti 2020-02-16 00:20:47 +01:00
parent 33feaed389
commit 33af514218

View File

@ -82,6 +82,9 @@ void Tags::addTag(Tag *tag)
void Tags::addTags(QList<Tag *> tags)
{
if (tags.isEmpty()) {
return;
}
beginInsertRows(QModelIndex(), m_list.count(), m_list.count() + tags.count() - 1);
foreach (Tag *tag, tags) {
tag->setParent(this);