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.
This commit is contained in:
Tobias Hunger
2011-04-15 16:02:44 +02:00
parent 9978ebeda8
commit c07e213399
14 changed files with 101 additions and 39 deletions

View File

@@ -51,6 +51,7 @@ public:
bool managesDirectory(const QString &directory, QString *topLevel) const;
bool isConfigured() const;
bool supportsOperation(Operation operation) const;
bool vcsOpen(const QString &fileName);
bool vcsAdd(const QString &fileName);
@@ -70,7 +71,6 @@ public:
void emitRepositoryChanged(const QString &);
private:
bool m_enabled;
GitClient *m_client;
};