diff options
-rw-r--r-- | src/library/treeitemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/treeitemmodel.cpp b/src/library/treeitemmodel.cpp index d86dd9167b..bf056ee859 100644 --- a/src/library/treeitemmodel.cpp +++ b/src/library/treeitemmodel.cpp @@ -183,7 +183,7 @@ void TreeItemModel::insertTreeItemRows( TreeItem* pParentItem = getItem(parent); DEBUG_ASSERT(pParentItem != nullptr); - beginInsertRows(parent, position, position + rows.size() - 1); + beginInsertRows(parent, position, position + static_cast<int>(rows.size()) - 1); pParentItem->insertChildren(position, std::move(rows)); endInsertRows(); } |