QItemSelectionModel: use QSignalBlocker

Change-Id: Ib88db7516fd7dd8f10a86444c506f3294948e79b
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Marc Mutz 2013-10-25 19:46:57 +02:00 committed by The Qt Project
parent ed827acc27
commit 0326c036d6

View File

@ -1271,9 +1271,8 @@ void QItemSelectionModel::clearCurrentIndex()
*/ */
void QItemSelectionModel::reset() void QItemSelectionModel::reset()
{ {
bool block = blockSignals(true); const QSignalBlocker blocker(this);
clear(); clear();
blockSignals(block);
} }
/*! /*!