forked from qt-creator/qt-creator
Gerrit: Use current top level as default repository
* Remove repository setting * Disable Gerrit menu entry if there is no top level Change-Id: Ie3f4ca36ae4e7b350034dea7a0de52382da94e90 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
f7db3258b4
commit
0eb363f959
@@ -197,17 +197,9 @@ QString GerritDialog::repositoryPath() const
|
||||
return m_repositoryChooser->path();
|
||||
}
|
||||
|
||||
void GerritDialog::displayRepositoryPath()
|
||||
void GerritDialog::setCurrentPath(const QString &path)
|
||||
{
|
||||
QTC_ASSERT(m_parameters, return);
|
||||
if (m_repositoryChooser->path().isEmpty())
|
||||
m_repositoryChooser->setPath(m_parameters->repositoryPath);
|
||||
}
|
||||
|
||||
void GerritDialog::showEvent(QShowEvent *event)
|
||||
{
|
||||
displayRepositoryPath();
|
||||
QDialog::showEvent(event);
|
||||
m_repositoryChooser->setPath(path);
|
||||
}
|
||||
|
||||
QPushButton *GerritDialog::addActionButton(const QString &text, const char *buttonSlot)
|
||||
|
||||
Reference in New Issue
Block a user