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:
Orgad Shaneh
2014-04-02 23:36:16 +03:00
committed by Orgad Shaneh
parent f7db3258b4
commit 0eb363f959
7 changed files with 7 additions and 26 deletions

View File

@@ -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)