forked from qt-creator/qt-creator
QmlJsTools: Remove pointless call to QAbstractItemModel::reset().
The effect is already achieved by the calls to {begin,end}ResetModel(),
which is the correct way to reset a model.
Change-Id: I1981f6d488dc8dbf4c7bc111aa6d6774bc2f50e0
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
This commit is contained in:
committed by
Aurindam Jana
parent
19aa02c94e
commit
99f5605baf
@@ -60,7 +60,6 @@ QmlConsoleItemModel::~QmlConsoleItemModel()
|
||||
void QmlConsoleItemModel::clear()
|
||||
{
|
||||
beginResetModel();
|
||||
reset();
|
||||
delete m_rootItem;
|
||||
m_rootItem = new ConsoleItem(0);
|
||||
endResetModel();
|
||||
|
||||
Reference in New Issue
Block a user