Debugger: Enable updates in watchwindow when changing model.

Might be left in disabled state in case engine binary crashes
while expanding locals.

Task-number: QTCREATORBUG-3099
This commit is contained in:
Friedemann Kleint
2011-03-03 10:39:05 +01:00
parent 9dae659477
commit 6c15cbbee9

View File

@@ -601,6 +601,8 @@ void WatchWindow::setModel(QAbstractItemModel *model)
connect(model, SIGNAL(layoutChanged()), SLOT(resetHelper()));
connect(model, SIGNAL(enableUpdates(bool)), SLOT(setUpdatesEnabled(bool)));
// Potentially left in disabled state in case engine crashes when expanding.
setUpdatesEnabled(true);
}
void WatchWindow::setUpdatesEnabled(bool enable)