Commit 6bb9fb26 authored by dt's avatar dt
Browse files

Fix openEditorWithContents to not crash

We don't call EditorManager::openEditorWithContents without a
titlepattern, but that would crash
parent 7f0f5643
......@@ -1314,8 +1314,8 @@ IEditor *EditorManager::openEditorWithContents(const QString &editorId,
} else {
title = *titlePattern;
}
*titlePattern = title;
}
*titlePattern = title;
edt->setDisplayName(title);
addEditor(edt);
QApplication::restoreOverrideCursor();
......
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