Git: Remove double warning for gerrit push

Change-Id: I5581521753fa525c6bb9f53725c28f947c8bbd44
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-06-02 19:43:15 +03:00
committed by Orgad Shaneh
parent 92392454b7
commit 1f447715b0
4 changed files with 23 additions and 22 deletions

View File

@@ -312,11 +312,8 @@ void GerritPlugin::push()
// QScopedPointer is required to delete the dialog when leaving the function
GerritPushDialog dialog(topLevel, m_reviewers, Core::ICore::mainWindow());
if (!dialog.localChangesFound()) {
QMessageBox::warning(Core::ICore::mainWindow(), tr("No Local Changes"),
tr("Change from HEAD appears to be in remote branch already. Aborting."));
if (!dialog.localChangesFound())
return;
}
if (!dialog.valid()) {
QMessageBox::warning(Core::ICore::mainWindow(), tr("Initialization Failed"),