mirror of https://github.com/mgba-emu/mgba.git
Qt: replace QAbstractItemModel::checkIndex() that was introduced in Qt 5.11
This commit is contained in:
parent
932062c1a4
commit
5bf240ac32
src/platform/qt/library
|
@ -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…
Reference in New Issue