Commit 99f5605b authored by Christian Kandeler's avatar Christian Kandeler Committed by Aurindam Jana

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: default avatarAurindam Jana <aurindam.jana@digia.com>
parent 19aa02c9
......@@ -60,7 +60,6 @@ QmlConsoleItemModel::~QmlConsoleItemModel()
void QmlConsoleItemModel::clear()
{
beginResetModel();
reset();
delete m_rootItem;
m_rootItem = new ConsoleItem(0);
endResetModel();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment