summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractproxymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemviews/qabstractproxymodel.cpp')
-rw-r--r--src/gui/itemviews/qabstractproxymodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qabstractproxymodel.cpp b/src/gui/itemviews/qabstractproxymodel.cpp
index 40345a7..43a1327 100644
--- a/src/gui/itemviews/qabstractproxymodel.cpp
+++ b/src/gui/itemviews/qabstractproxymodel.cpp
@@ -127,6 +127,7 @@ void QAbstractProxyModel::setSourceModel(QAbstractItemModel *sourceModel)
} else {
d->model = QAbstractItemModelPrivate::staticEmptyModel();
}
+ d->roleNames = d->model->roleNames();
}
/*!