Commit b0977f83 authored by hjk's avatar hjk

Debugger: Don't update watch view needlessly

Column width computation is not cheap.

Change-Id: I615e1f9888f32171c478bfa2be565a91d669e8a2
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 179d4aea
......@@ -1947,7 +1947,6 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
QTC_ASSERT(!engine->isSlaveEngine(), return);
m_threadBox->setCurrentIndex(engine->threadsHandler()->currentThreadIndex());
engine->watchHandler()->updateWatchersWindow();
const DebuggerState state = engine->state();
//showMessage(QString::fromLatin1("PLUGIN SET STATE: ")
......
......@@ -877,7 +877,8 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
} else {
m_expandedINames.remove(item->iname);
}
emit columnAdjustmentRequested();
if (item->iname.contains('.'))
emit columnAdjustmentRequested();
break;
case LocalsTypeFormatRole:
......
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