summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/memoryagent.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-07-09 12:14:33 +0200
committerEike Ziller <eike.ziller@digia.com>2013-07-12 11:58:24 +0200
commit871a8cd0319a4acfc7d4e4187596571bbf86e041 (patch)
treec61e3f54eb591ded80e4a8b49c3740175369a43d /src/plugins/debugger/memoryagent.cpp
parent354cd410b09091c1fe63b96388d49c60639b035f (diff)
downloadqt-creator-871a8cd0319a4acfc7d4e4187596571bbf86e041.tar.gz
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>
Diffstat (limited to 'src/plugins/debugger/memoryagent.cpp')
-rw-r--r--src/plugins/debugger/memoryagent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/memoryagent.cpp b/src/plugins/debugger/memoryagent.cpp
index 5289b50272..735e9bc29f 100644
--- a/src/plugins/debugger/memoryagent.cpp
+++ b/src/plugins/debugger/memoryagent.cpp
@@ -181,8 +181,8 @@ bool MemoryAgent::doCreateBinEditor(quint64 addr, unsigned flags,
Core::Constants::K_DEFAULT_BINARY_EDITOR_ID, &title);
if (!editor)
return false;
- editor->setProperty(Constants::OPENED_BY_DEBUGGER, QVariant(true));
- editor->setProperty(Constants::OPENED_WITH_MEMORY, QVariant(true));
+ editor->document()->setProperty(Constants::OPENED_BY_DEBUGGER, QVariant(true));
+ editor->document()->setProperty(Constants::OPENED_WITH_MEMORY, QVariant(true));
QWidget *editorBinEditor = editor->widget();
connectBinEditorWidget(editorBinEditor);
MemoryView::setBinEditorReadOnly(editorBinEditor, readOnly);