From 5bf240ac32bd0ceff844221cf60aee6757f7ec3b Mon Sep 17 00:00:00 2001 From: Adam Higerd Date: Thu, 10 Apr 2025 18:18:11 -0500 Subject: [PATCH] Qt: replace QAbstractItemModel::checkIndex() that was introduced in Qt 5.11 --- src/platform/qt/library/LibraryModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/library/LibraryModel.cpp b/src/platform/qt/library/LibraryModel.cpp index f700a18eb..cf4cb58ca 100644 --- a/src/platform/qt/library/LibraryModel.cpp +++ b/src/platform/qt/library/LibraryModel.cpp @@ -357,7 +357,7 @@ QVariant LibraryModel::data(const QModelIndex& index, int role) const { return QVariant(); } - if (!checkIndex(index)) { + if (index.model() != this || index.row() < 0 || index.row() > rowCount() || index.column() < 0 || index.column() > columnCount()) { return QVariant(); }