diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-08-01 11:49:33 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-08-01 15:19:58 +0000 |
commit | d1284e910135efe68cb3b2f085afff9d760693dd (patch) | |
tree | f70bef0ba4282757d51c8c8f28f8877a73bc53e8 /src/plugins/vcsbase/wizard | |
parent | bc8ebd3bc73501c7c51fbb00366d4211ccba6d5a (diff) | |
download | qt-creator-d1284e910135efe68cb3b2f085afff9d760693dd.tar.gz |
Move createInitialCheckoutCommand() out from core plugin
Change-Id: I99f4795822838ac084d0d6823db96e5864e0dcdf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/wizard')
-rw-r--r-- | src/plugins/vcsbase/wizard/vcscommandpage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/wizard/vcscommandpage.cpp b/src/plugins/vcsbase/wizard/vcscommandpage.cpp index 717fb96385..80c8a10617 100644 --- a/src/plugins/vcsbase/wizard/vcscommandpage.cpp +++ b/src/plugins/vcsbase/wizard/vcscommandpage.cpp @@ -24,9 +24,9 @@ ****************************************************************************/ #include "vcscommandpage.h" +#include "vcsbaseplugin.h" #include "vcscommand.h" -#include <coreplugin/iversioncontrol.h> #include <coreplugin/vcsmanager.h> #include <projectexplorer/jsonwizard/jsonwizard.h> @@ -354,7 +354,8 @@ void VcsCommandPage::delayedInitialize() QTC_ASSERT(wiz, return); const QString vcsId = wiz->expander()->expand(m_vcsId); - IVersionControl *vc = VcsManager::versionControl(Id::fromString(vcsId)); + VcsBasePluginPrivate *vc = static_cast<VcsBasePluginPrivate *>( + VcsManager::versionControl(Id::fromString(vcsId))); if (!vc) { qWarning() << QCoreApplication::translate("VcsBase::VcsCommandPage", "\"%1\" (%2) not found.") |