forked from qt-creator/qt-creator
Git: Enable/disable Repository Browser action
Enable/disable Repository Browser action based on whether or not the relevant setting is defined or not. Change-Id: I37f501e41c99390921d2b147625dbdc388d0dcc7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -282,7 +282,11 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
initializeVcs(new GitVersionControl(m_gitClient), context);
|
||||
|
||||
// Create the settings Page
|
||||
addAutoReleasedObject(new SettingsPage(versionControl()));
|
||||
auto settingsPage = new SettingsPage(versionControl());
|
||||
addAutoReleasedObject(settingsPage);
|
||||
connect(settingsPage, &SettingsPage::settingsChanged,
|
||||
this, &GitPlugin::updateRepositoryBrowserAction);
|
||||
|
||||
addAutoReleasedObject(new GitGrep);
|
||||
|
||||
const auto describeFunc = [this](const QString &source, const QString &id) {
|
||||
|
Reference in New Issue
Block a user