if (setMarker)
d->m_locationMark.reset(new LocationMark(file, line));
+
+ // FIXME: Breaks with split views.
+ if (!d->m_memoryAgent.hasVisibleEditor())
+ editorManager->activateEditor(editors.back());
+ //qDebug() << "MEMORY: " << d->m_memoryAgent.hasVisibleEditor();
}
void DebuggerEngine::gotoLocation(const StackFrame &frame, bool setMarker)
QMetaObject::invokeMethod(editor->widget(), "updateContents");
}
+bool MemoryAgent::hasVisibleEditor() const
+{
+ QList<IEditor *> visible = EditorManager::instance()->visibleEditors();
+ foreach (QPointer<IEditor> editor, m_editors)
+ if (visible.contains(editor.data()))
+ return true;
+ return false;
+}
+
} // namespace Internal
} // namespace Debugger
~MemoryAgent();
enum { BinBlockSize = 1024 };
+ bool hasVisibleEditor() const;
public slots:
// Called by engine to create a new view.