Commit 2e0434dd authored by Tobias Hunger's avatar Tobias Hunger

Git: Fix possible core dump

Change-Id: Ieb822c8810e8943d5397e6c64188690e481dd0f9
Reviewed-by: default avatarTobias Hunger <>
parent d16706fc
......@@ -882,6 +882,7 @@ DiffEditor::DiffEditor *GitClient::findExistingOrOpenNewDiffEditor(const char *r
QString title = titlePattern;
editor = qobject_cast<DiffEditor::DiffEditor *>(
Core::EditorManager::openEditorWithContents(editorId, &title, m_msgWait.toUtf8()));
QTC_ASSERT(editor, return 0);
editor->document()->setProperty(registerDynamicProperty, dynamicPropertyValue);
Markdown is supported
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