Fix crash on startup

FossilPluginPrivate::instance() was called before dd was assigned.

Change-Id: Id6bb6a0134ffa80e18c9c9cc144fb25ca6a2be6b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2020-01-31 16:36:29 +02:00
committed by Orgad Shaneh
parent cf8dd5cb3c
commit 7855122c53
3 changed files with 8 additions and 6 deletions

View File

@@ -173,7 +173,9 @@ FossilPluginPrivate::FossilPluginPrivate()
m_commandLocator = new Core::CommandLocator("Fossil", "fossil", "fossil", this);
ProjectExplorer::JsonWizardFactory::addWizardPath(Utils::FilePath::fromString(Constants::WIZARD_PATH));
Core::JsExpander::registerGlobalObject<FossilJsExtension>("Fossil");
Core::JsExpander::registerGlobalObject("Fossil", [this] {
return new FossilJsExtension(&m_fossilSettings);
});
createMenu(context);