forked from qt-creator/qt-creator
Mercurial: Fix passing editor parameters when creating a factory
Otherwise the internal id and and the mimetype members might be
just null pointers. Amends 20658d689.
Change-Id: I4593d471637c144942130615e5be39c6da85c31f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -133,7 +133,7 @@ bool MercurialPlugin::initialize(const QStringList & /* arguments */, QString *
|
|||||||
m_client->view(source, id);
|
m_client->view(source, id);
|
||||||
};
|
};
|
||||||
const auto widgetCreator = []() { return new MercurialEditorWidget; };
|
const auto widgetCreator = []() { return new MercurialEditorWidget; };
|
||||||
for (auto editor : editorParameters)
|
for (auto &editor : editorParameters)
|
||||||
new VcsEditorFactory(&editor, widgetCreator, describeFunc, this);
|
new VcsEditorFactory(&editor, widgetCreator, describeFunc, this);
|
||||||
|
|
||||||
new VcsSubmitEditorFactory(&submitEditorParameters,
|
new VcsSubmitEditorFactory(&submitEditorParameters,
|
||||||
|
|||||||
Reference in New Issue
Block a user