Commit 5946b78d authored by hjk's avatar hjk
Browse files

debugger: close editors opened while stepping

parent b8b318da
......@@ -1112,6 +1112,16 @@ void DebuggerManager::cleanupViews()
registerHandler()->removeAll();
d->m_sourceFilesWindow->removeAll();
d->m_disassemblerViewAgent.cleanup();
// FIXME: Move to plugin?
using namespace Core;
if (EditorManager *editorManager = EditorManager::instance()) {
QList<IEditor *> toClose;
foreach (IEditor *editor, editorManager->openedEditors())
if (editor->property("OpenedByDebugger").toBool())
toClose.append(editor);
editorManager->closeEditors(toClose);
}
}
void DebuggerManager::exitDebugger()
......@@ -1284,7 +1294,7 @@ void DebuggerManager::addToWatchWindow()
{
using namespace Core;
using namespace TextEditor;
// requires a selection, but that's the only case we want...
// Requires a selection, but that's the only case we want anyway.
EditorManager *editorManager = EditorManager::instance();
if (!editorManager)
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment