Merge PR #332: Fix an assertion when there are no tags
This commit is contained in:
commit
fa149688da
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user