Files
cmake/Source/QtDialog
Joerg Bornemann 327f50083b cmake-gui: Fix {begin|end}ResetModel warnings
QStandardItemModel::beginResetModel() and
QStandardItemModel::endResetModel() calls cannot be nested, and Qt will
produce warnings at runtime if such nesting is detected.

The nesting happened in two places:
1. QCMakeCacheModel::setViewType calls QCMakeCacheModel::setProperties.
Both called beginResetModel.
2. QCMakeCacheModel::setProperties calls QStandardItemModel::clear(),
which also calls beginResetModel.

The fix for 1 is to remove the {begin|end}ResetModel calls from
setViewType. The setProperties calls take care of the
{begin|end}ResetModel calls.

The fix for 2 is to replace the clear() call with a call that removes
all data rows.

Issue: #27376
2025-11-13 08:08:15 -05:00
..
2008-03-11 17:27:41 -04:00
2025-11-04 09:58:38 -05:00
2019-01-25 09:14:51 -05:00
2019-01-25 09:14:51 -05:00
2019-01-25 09:14:51 -05:00
2018-08-16 11:56:08 -04:00
2018-08-16 11:56:08 -04:00
2008-12-16 15:00:17 -05:00
2019-01-25 09:14:51 -05:00
2019-01-25 09:14:51 -05:00
2025-11-07 09:35:54 -05:00