Commit aa092690 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

VCS: Initially enable menus.

Fix breakage introduced by:
59237338
parent 886088a1
......@@ -398,10 +398,6 @@ bool CVSPlugin::initialize(const QStringList & /*arguments */, QString *errorMes
return true;
}
void CVSPlugin::extensionsInitialized()
{
}
bool CVSPlugin::submitEditorAboutToClose(VCSBase::VCSBaseSubmitEditor *submitEditor)
{
if (!isCommitEditorOpen())
......
......@@ -84,7 +84,6 @@ public:
~CVSPlugin();
virtual bool initialize(const QStringList &arguments, QString *error_message);
virtual void extensionsInitialized();
void cvsDiff(const QString &workingDir, const QStringList &files);
......
......@@ -507,10 +507,6 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
return true;
}
void GitPlugin::extensionsInitialized()
{
}
GitVersionControl *GitPlugin::gitVersionControl() const
{
return static_cast<GitVersionControl *>(versionControl());
......
......@@ -91,7 +91,6 @@ public:
static GitPlugin *instance();
virtual bool initialize(const QStringList &arguments, QString *error_message);
virtual void extensionsInitialized();
GitVersionControl *gitVersionControl() const;
......
......@@ -188,10 +188,6 @@ bool MercurialPlugin::initialize(const QStringList & /* arguments */, QString *
return true;
}
void MercurialPlugin::extensionsInitialized()
{
}
const MercurialSettings &MercurialPlugin::settings() const
{
return mercurialSettings;
......
......@@ -81,7 +81,7 @@ public:
MercurialPlugin();
virtual ~MercurialPlugin();
bool initialize(const QStringList &arguments, QString *error_message);
void extensionsInitialized();
static MercurialPlugin *instance() { return m_instance; }
MercurialClient *client() const { return m_client; }
......
......@@ -456,6 +456,7 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString * e
void PerforcePlugin::extensionsInitialized()
{
VCSBase::VCSBasePlugin::extensionsInitialized();
getTopLevel();
}
......
......@@ -440,10 +440,6 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
return true;
}
void SubversionPlugin::extensionsInitialized()
{
}
bool SubversionPlugin::submitEditorAboutToClose(VCSBase::VCSBaseSubmitEditor *submitEditor)
{
if (!isCommitEditorOpen())
......
......@@ -81,7 +81,6 @@ public:
~SubversionPlugin();
bool initialize(const QStringList &arguments, QString *error_message);
void extensionsInitialized();
void svnDiff(const QString &workingDir, const QStringList &files, QString diffname = QString());
......
......@@ -165,7 +165,7 @@ public:
signals:
void stateChanged(const VCSBase::Internal::State &s, Core::IVersionControl *vc);
private slots:
public slots:
void slotStateChanged();
};
......@@ -465,6 +465,12 @@ void VCSBasePlugin::initialize(Core::IVersionControl *vc)
SLOT(slotStateChanged(VCSBase::Internal::State,Core::IVersionControl*)));
}
void VCSBasePlugin::extensionsInitialized()
{
// Initialize enable menus.
VCSBasePluginPrivate::m_listener->slotStateChanged();
}
void VCSBasePlugin::slotSubmitEditorAboutToClose(VCSBaseSubmitEditor *submitEditor, bool *result)
{
if (debug)
......
......@@ -151,7 +151,8 @@ class VCSBASE_EXPORT VCSBasePlugin : public ExtensionSystem::IPlugin
protected:
explicit VCSBasePlugin(const QString &submitEditorId);
void initialize(Core::IVersionControl *vc);
virtual void initialize(Core::IVersionControl *vc);
virtual void extensionsInitialized();
public:
virtual ~VCSBasePlugin();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment