summaryrefslogtreecommitdiff
path: root/src/plugins/git/gerrit/gerritplugin.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-06-02 19:43:15 +0300
committerOrgad Shaneh <orgads@gmail.com>2013-06-04 10:43:54 +0200
commit1f447715b032c8d23d5c67a9a6514409f9fcbe4a (patch)
treec242463424646a314ca9b2c0ed240ecc21d538d5 /src/plugins/git/gerrit/gerritplugin.cpp
parent92392454b74b5f79af5095e4f5725f0d4f57e6f1 (diff)
downloadqt-creator-1f447715b032c8d23d5c67a9a6514409f9fcbe4a.tar.gz
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>
Diffstat (limited to 'src/plugins/git/gerrit/gerritplugin.cpp')
-rw-r--r--src/plugins/git/gerrit/gerritplugin.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp
index c05af4310c..21ac311c76 100644
--- a/src/plugins/git/gerrit/gerritplugin.cpp
+++ b/src/plugins/git/gerrit/gerritplugin.cpp
@@ -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"),