diff options
author | jkobus <jaroslaw.kobus@digia.com> | 2013-12-19 10:37:26 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@digia.com> | 2013-12-19 14:06:51 +0100 |
commit | 0d13028440f9ce887300ee69702ae153bb2dfb88 (patch) | |
tree | 0b9200867138f2e4bbc7e329aefb3a63c45280bc /src/plugins/git/gitclient.cpp | |
parent | cc1e8464d1a2dea5b454b5cacdcc697f130c49a1 (diff) | |
download | qt-creator-0d13028440f9ce887300ee69702ae153bb2dfb88.tar.gz |
Refactor source property
Get rid of source property out of DiffEditorWidget,
attach dynamic property when it's needed instead.
Change-Id: I6641a7b55c42b4eceba78c2e28f5140b40fe0fa5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r-- | src/plugins/git/gitclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 6842489a82..85e993a548 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -1045,7 +1045,7 @@ DiffEditor::DiffEditor *GitClient::createDiffEditor(const char *registerDynamicP Core::EditorManager::openEditorWithContents(editorId, &title, m_msgWait.toUtf8())); QTC_ASSERT(diffEditor, return 0); diffEditor->document()->setProperty(registerDynamicProperty, dynamicPropertyValue); - diffEditor->editorWidget()->setSource(source); + VcsBasePlugin::setSource(diffEditor, source); Core::EditorManager::activateEditor(diffEditor); return diffEditor; |