diff options
author | Brad King <brad.king@kitware.com> | 2020-07-23 12:20:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-07-23 12:20:48 (GMT) |
commit | f3d93edb3600931c35e63c3a8a69005d39d31a56 (patch) | |
tree | 5a7925d91039d76a26cca198b410c704d02b9b54 /Source/QtDialog | |
parent | 2f53f8684fd08901a127275970a297fd1e574082 (diff) | |
parent | af6cf586f63654f1c9d4e78b3acfafa2cfecae57 (diff) | |
download | CMake-f3d93edb3600931c35e63c3a8a69005d39d31a56.zip CMake-f3d93edb3600931c35e63c3a8a69005d39d31a56.tar.gz CMake-f3d93edb3600931c35e63c3a8a69005d39d31a56.tar.bz2 |
Merge topic 'cmake-gui-qt-5.14'
af6cf586f6 cmake-gui: Fix crash when built with Qt 5.14 or later
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5045
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 659a512..3bf4409 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -220,8 +220,9 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props) #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) QSet<QCMakeProperty> oldProps = this->properties().toSet(); #else - QSet<QCMakeProperty> oldProps = QSet<QCMakeProperty>( - this->properties().begin(), this->properties().end()); + QCMakePropertyList const& oldPropsList = this->properties(); + QSet<QCMakeProperty> oldProps = + QSet<QCMakeProperty>(oldPropsList.begin(), oldPropsList.end()); #endif oldProps.intersect(newProps); newProps.subtract(oldProps); |