Check pointer nullity

This commit is contained in:
Arnaud Bienner 2011-09-22 19:50:43 +02:00
parent 10c141e1c1
commit 2406fdabf6

View File

@ -385,6 +385,9 @@ QMimeData* MergedProxyModel::mimeData(const QModelIndexList &indexes) const {
// Only ask the first index's model
const QAbstractItemModel* model = mapToSource(indexes[0]).model();
if (!model) {
return 0;
}
// Only ask about the indexes that are actually in that model
QModelIndexList indexes_in_model;