forked from qt-creator/qt-creator
Debugger: Don't update watch view needlessly
Column width computation is not cheap. Change-Id: I615e1f9888f32171c478bfa2be565a91d669e8a2 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -1947,7 +1947,6 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
|
|||||||
QTC_ASSERT(!engine->isSlaveEngine(), return);
|
QTC_ASSERT(!engine->isSlaveEngine(), return);
|
||||||
|
|
||||||
m_threadBox->setCurrentIndex(engine->threadsHandler()->currentThreadIndex());
|
m_threadBox->setCurrentIndex(engine->threadsHandler()->currentThreadIndex());
|
||||||
engine->watchHandler()->updateWatchersWindow();
|
|
||||||
|
|
||||||
const DebuggerState state = engine->state();
|
const DebuggerState state = engine->state();
|
||||||
//showMessage(QString::fromLatin1("PLUGIN SET STATE: ")
|
//showMessage(QString::fromLatin1("PLUGIN SET STATE: ")
|
||||||
|
|||||||
@@ -877,6 +877,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
|
|||||||
} else {
|
} else {
|
||||||
m_expandedINames.remove(item->iname);
|
m_expandedINames.remove(item->iname);
|
||||||
}
|
}
|
||||||
|
if (item->iname.contains('.'))
|
||||||
emit columnAdjustmentRequested();
|
emit columnAdjustmentRequested();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user