forked from qt-creator/qt-creator
VcsManager: Register IVersionControls with VcsManager
Get some more objects out of the pool. Change-Id: Id93021b712307c4777dc39b9d15aa18a46318885 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -296,10 +296,10 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
|
||||
m_gitClient = new GitClient;
|
||||
|
||||
initializeVcs(new GitVersionControl(m_gitClient), context);
|
||||
auto vc = initializeVcs<GitVersionControl>(context, m_gitClient);
|
||||
|
||||
// Create the settings Page
|
||||
auto settingsPage = new SettingsPage(versionControl());
|
||||
auto settingsPage = new SettingsPage(vc);
|
||||
addAutoReleasedObject(settingsPage);
|
||||
connect(settingsPage, &SettingsPage::settingsChanged,
|
||||
this, &GitPlugin::updateRepositoryBrowserAction);
|
||||
|
Reference in New Issue
Block a user