forked from qt-creator/qt-creator
debugger: fix expansion of object in gdb tooltips on first click
Change-Id: Ia157f8fb7f1b9ff8a8161c8a726d1d483b81e54f Reviewed-on: http://codereview.qt.nokia.com/179 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -3542,7 +3542,7 @@ bool GdbEngine::showToolTip()
|
||||
watchHandler()->removeData(iname);
|
||||
return false;
|
||||
}
|
||||
DebuggerTreeViewToolTipWidget *tw = new DebuggerTreeViewToolTipWidget;
|
||||
DebuggerToolTipWidget *tw = new DebuggerToolTipWidget;
|
||||
tw->setDebuggerModel(TooltipsWatch);
|
||||
tw->setExpression(expression);
|
||||
tw->setContext(*m_toolTipContext);
|
||||
@@ -3716,11 +3716,11 @@ void GdbEngine::updateWatchData(const WatchData &data, const WatchUpdateFlags &f
|
||||
// << (m_pendingBreakpointRequests == 0);
|
||||
|
||||
UpdateParameters params;
|
||||
params.tooltipOnly = data.iname.startsWith("tooltip");
|
||||
params.tryPartial = flags.tryIncremental
|
||||
&& hasPython()
|
||||
&& m_pendingWatchRequests == 0
|
||||
&& m_pendingBreakpointRequests == 0;
|
||||
params.tooltipOnly = false;
|
||||
params.varList = data.iname;
|
||||
|
||||
updateLocalsPython(params);
|
||||
|
||||
Reference in New Issue
Block a user