summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qsortpolicy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/framegraph/qsortpolicy.cpp')
-rw-r--r--src/render/framegraph/qsortpolicy.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/framegraph/qsortpolicy.cpp b/src/render/framegraph/qsortpolicy.cpp
index 6f852afbd..c8e3d23c5 100644
--- a/src/render/framegraph/qsortpolicy.cpp
+++ b/src/render/framegraph/qsortpolicy.cpp
@@ -178,7 +178,10 @@ void QSortPolicy::setSortTypes(const QVector<SortType> &sortTypes)
if (sortTypes != d->m_sortTypes) {
d->m_sortTypes = sortTypes;
emit sortTypesChanged(sortTypes);
+
+ const bool wasBlocked = blockNotifications(true);
emit sortTypesChanged(sortTypesInt());
+ blockNotifications(wasBlocked);
}
}