forked from qt-creator/qt-creator
Gerrit: Update remotes on settings change
If the user is changed, we need to refresh at least the fallback server. Task-number: QTCREATORBUG-20536 Change-Id: If21830ae5607907db9aaee164bc85b971ff93010 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
4a868d6a18
commit
909f30f006
@@ -292,7 +292,12 @@ bool GerritPlugin::initialize(ActionContainer *ac)
|
||||
connect(pushAction, &QAction::triggered, this, [this]() { push(); });
|
||||
ac->addAction(m_pushToGerritCommand);
|
||||
|
||||
new GerritOptionsPage(m_parameters, this);
|
||||
auto options = new GerritOptionsPage(m_parameters, this);
|
||||
connect(options, &GerritOptionsPage::settingsChanged,
|
||||
this, [this] {
|
||||
if (m_dialog)
|
||||
m_dialog->scheduleUpdateRemotes();
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user