diff options
-rw-r--r-- | src/ivicore/qivipagingmodel.cpp | 6 | ||||
-rw-r--r-- | src/ivimedia/qiviplayqueue.cpp | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/ivicore/qivipagingmodel.cpp b/src/ivicore/qivipagingmodel.cpp index 0ddf289..b9bd4df 100644 --- a/src/ivicore/qivipagingmodel.cpp +++ b/src/ivicore/qivipagingmodel.cpp @@ -169,12 +169,14 @@ void QIviPagingModelPrivate::onDataChanged(const QUuid &identifier, const QList< return; if (start < 0 || start > m_itemList.count()) { - qWarning("provided start argument is out of range"); + if (m_loadingType == QIviPagingModel::DataChanged) + qWarning("The provided start argument is out of range. Please make sure to emit the countChanged() before emitting dataChanged()"); return; } if (count < 0 || count > m_itemList.count() - start) { - qWarning("provided count argument is out of range"); + if (m_loadingType == QIviPagingModel::DataChanged) + qWarning("The provided start argument is out of range. Please make sure to emit the countChanged() before emitting dataChanged()"); return; } diff --git a/src/ivimedia/qiviplayqueue.cpp b/src/ivimedia/qiviplayqueue.cpp index 4d30461..895f6dc 100644 --- a/src/ivimedia/qiviplayqueue.cpp +++ b/src/ivimedia/qiviplayqueue.cpp @@ -150,12 +150,14 @@ void QIviPlayQueuePrivate::onCountChanged(int new_length) void QIviPlayQueuePrivate::onDataChanged(const QList<QVariant> &data, int start, int count) { if (start < 0 || start > m_itemList.count()) { - qWarning("provided start argument is out of range"); + if (m_loadingType == QIviPlayQueue::DataChanged) + qWarning("The provided start argument is out of range. Please make sure to emit the countChanged() before emitting dataChanged()"); return; } if (count < 0 || count > m_itemList.count() - start) { - qWarning("provided count argument is out of range"); + if (m_loadingType == QIviPlayQueue::DataChanged) + qWarning("The provided start argument is out of range. Please make sure to emit the countChanged() before emitting dataChanged()"); return; } |