forked from qt-creator/qt-creator
Debugger: remove isEditorDebuggable
It was returning 'true' unconditionally for a while. Change-Id: Ia99bdb3c525641f757dacbba148b68d677f4d632 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -220,7 +220,7 @@ public:
|
||||
DebuggerToolTipEditor::DebuggerToolTipEditor(IEditor *ie) :
|
||||
textEditor(0), baseTextEditor(0), document(0)
|
||||
{
|
||||
if (ie && ie->document() && isEditorDebuggable(ie)) {
|
||||
if (ie && ie->document()) {
|
||||
if (ITextEditor *te = qobject_cast<ITextEditor *>(ie)) {
|
||||
if (BaseTextEditorWidget *pe = qobject_cast<BaseTextEditorWidget *>(ie->widget())) {
|
||||
textEditor = te;
|
||||
@@ -1435,7 +1435,7 @@ void DebuggerToolTipManager::slotTooltipOverrideRequested(ITextEditor *editor,
|
||||
break; // Avoid flicker.
|
||||
|
||||
DebuggerCore *core = debuggerCore();
|
||||
if (!isEditorDebuggable(editor) || !core->boolSetting(UseToolTipsInMainEditor))
|
||||
if (!core->boolSetting(UseToolTipsInMainEditor))
|
||||
break;
|
||||
|
||||
currentEngine = core->currentEngine();
|
||||
|
||||
Reference in New Issue
Block a user