diff options
author | hjk <hjk@qt.io> | 2020-01-21 18:04:49 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-01-22 11:32:04 +0000 |
commit | f5d4b65931d0bd80d19f573d5ee32eb6dd94045a (patch) | |
tree | 9f3dfbcb2292758bd88d34e25a02c2ddc25affd2 /src/plugins/bazaar/bazaarplugin.cpp | |
parent | 5cda42020e02d269972384ed803702c560ed52cc (diff) |
Vcs: Dissolve VcsManager::registerVersionControl
It's a somewhat unusual pattern, spelling it out will help
to move the vcs plugins setup closer to the now-usual pattern.
Change-Id: Ie7b70e52d75e34cd36b6a1d55ca868e3edab44a7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/bazaar/bazaarplugin.cpp')
-rw-r--r-- | src/plugins/bazaar/bazaarplugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/bazaar/bazaarplugin.cpp b/src/plugins/bazaar/bazaarplugin.cpp index c2990c9232f..a9ca44e738f 100644 --- a/src/plugins/bazaar/bazaarplugin.cpp +++ b/src/plugins/bazaar/bazaarplugin.cpp @@ -151,7 +151,9 @@ bool BazaarPlugin::initialize(const QStringList &arguments, QString *errorMessag Context context(Constants::BAZAAR_CONTEXT); m_client = new BazaarClient; - auto vcsCtrl = initializeVcs<BazaarControl>(context, m_client); + auto vcsCtrl = new BazaarControl(m_client); + initializeVcs(vcsCtrl, context); + connect(m_client, &VcsBaseClient::changed, vcsCtrl, &BazaarControl::changed); new OptionsPage(vcsCtrl, this); |