Skip to content

cmake-gui: Fix crash when built with Qt 5.14 or later

Brad King requested to merge brad.king/cmake:cmake-gui-qt-5.14 into master

In !4874 (merged) the conversion of the this->properties() value to QSet is incorrect for Qt 5.14+. The problem is that this->properties() returns by value, so the range this->properties().begin(), this->properties().end() provides iterators to two different instances. Use an intermediate temporary copy of the value to get a consistent iterator range.

Fixes: #20981 (closed)
Backport: release

Edited by Brad King

Merge request reports