From 1ca6842bcd140d2d5be1b4465428771aec8bd0a0 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 5 Oct 2013 21:09:49 +0300 Subject: Git: Fix compiler warnings Unhandled enum values in switch Change-Id: I6533d8773ff4fa663a1e33c1f95c81f53790b642 Reviewed-by: Nikolai Kosjar --- src/plugins/git/gitclient.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/plugins/git/gitclient.cpp') diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index aa4e2b48db..87fb48d6f3 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -3047,12 +3047,9 @@ bool GitClient::getCommitData(const QString &workingDirectory, commitData.enablePush = !synchronousRemotesList(repoDirectory).isEmpty(); if (commitData.enablePush) { - switch (checkCommandInProgress(repoDirectory)) { - case GitClient::Rebase: - case GitClient::RebaseMerge: + CommandInProgress commandInProgress = checkCommandInProgress(repoDirectory); + if (commandInProgress == Rebase || commandInProgress == RebaseMerge) commitData.enablePush = false; - break; - } } return true; -- cgit v1.2.1