forked from qt-creator/qt-creator
Work with documents instead of editors where possible in debugger
And where using editors is necessary, take *all* editors into account, not a random set of what previously was called "original" editors (when using splits). Change-Id: Id6bbad08f3083b6744fc2edcf0b87ba504d3257b Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -310,8 +310,9 @@ void DisassemblerAgent::setContentsToEditor(const DisassemblerLines &contents)
|
||||
Core::Constants::K_DEFAULT_TEXT_EDITOR_ID,
|
||||
&titlePattern));
|
||||
QTC_ASSERT(d->editor, return);
|
||||
d->editor->setProperty(Debugger::Constants::OPENED_BY_DEBUGGER, true);
|
||||
d->editor->setProperty(Debugger::Constants::OPENED_WITH_DISASSEMBLY, true);
|
||||
IDocument *document = d->editor->document();
|
||||
document->setProperty(Debugger::Constants::OPENED_BY_DEBUGGER, true);
|
||||
document->setProperty(Debugger::Constants::OPENED_WITH_DISASSEMBLY, true);
|
||||
d->configureMimeType();
|
||||
|
||||
BaseTextEditorWidget *baseTextEdit =
|
||||
|
||||
Reference in New Issue
Block a user