Qt: replace QAbstractItemModel::checkIndex() that was introduced in Qt 5.11
This commit is contained in:
parent
932062c1a4
commit
5bf240ac32
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user