strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Remove use of `std::numeric_limits<int>::max()` for beginRemoveRows in MergedProxyModel

Open jonaski opened this issue 8 months ago • 0 comments

Remove use of std::numeric_limits<int>::max() in https://github.com/strawberrymusicplayer/strawberry/blob/c95886d8db863eb9a3a5617a79f6b6e02d25d4ec/src/core/mergedproxymodel.cpp#L127

Causing assert in debug:

22:57:39.523 ERROR unknown ASSERT: "last < rowCount(parent)" in file /home/jonas/Projects/qtbase/qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp, line 2943

jonaski avatar Nov 10 '23 22:11 jonaski