QItemSelectionModel: use QSignalBlocker
Change-Id: Ib88db7516fd7dd8f10a86444c506f3294948e79b Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
ed827acc27
commit
0326c036d6
@ -1271,9 +1271,8 @@ void QItemSelectionModel::clearCurrentIndex()
|
||||
*/
|
||||
void QItemSelectionModel::reset()
|
||||
{
|
||||
bool block = blockSignals(true);
|
||||
const QSignalBlocker blocker(this);
|
||||
clear();
|
||||
blockSignals(block);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user