We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ef641d + 3163971 commit d56bd88Copy full SHA for d56bd88
collection.cpp
@@ -119,7 +119,16 @@ QJSValue Collection::at(int row) const
119
120
void Collection::reSort()
121
{
122
- sort(0);
+ if (dynamicSortFilter())
123
+ {
124
+ // Workaround: If dynamic_sortfilter == true, sort(0) will not (always)
125
+ // result in d->sort() being called, but setDynamicSortFilter(true) will.
126
+ setDynamicSortFilter(true);
127
+ }
128
+ else
129
130
+ sort(0);
131
132
}
133
134
void Collection::reFilter()
@@ -128,4 +137,3 @@ void Collection::reFilter()
137
138
139
} } }
-
0 commit comments