summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-04-15 16:02:44 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-04-15 16:06:38 +0200
commitc07e2133990d23e1aa7df6a8bf6ff77ea50c2167 (patch)
treecf42bb98786dc8fa615510f8e36c418cde2f40cc /src/plugins/git/gitplugin.cpp
parent9978ebeda85bad33f017d2ed0c045ae3b1838714 (diff)
downloadqt-creator-c07e2133990d23e1aa7df6a8bf6ff77ea50c2167.tar.gz
VCS: Do not claim to support any operation if unconfigured
Make sure none of the VCS systems claims it does support any VCS operation while unconfigured. This stops the specific VCS from showing up in wizards, etc. till they can actually be used.
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r--src/plugins/git/gitplugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index 08a122dc92..8687ec823f 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -277,13 +277,14 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
+ m_core = Core::ICore::instance();
+ m_gitClient = new GitClient(this);
+
typedef VCSBase::VCSEditorFactory<GitEditor> GitEditorFactory;
typedef VCSBase::VCSSubmitEditorFactory<GitSubmitEditor> GitSubmitEditorFactory;
VCSBase::VCSBasePlugin::initialize(new GitVersionControl(m_gitClient));
- m_core = Core::ICore::instance();
- m_gitClient = new GitClient(this);
// Create the globalcontext list to register actions accordingly
Core::Context globalcontext(Core::Constants::C_GLOBAL);