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:
Christian Kandeler
2012-11-06 15:28:29 +01:00
committed by Aurindam Jana
parent 19aa02c94e
commit 99f5605baf

View File

@@ -60,7 +60,6 @@ QmlConsoleItemModel::~QmlConsoleItemModel()
void QmlConsoleItemModel::clear()
{
beginResetModel();
reset();
delete m_rootItem;
m_rootItem = new ConsoleItem(0);
endResetModel();