summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-10-05 21:09:49 +0300
committerOrgad Shaneh <orgads@gmail.com>2013-10-07 12:02:39 +0200
commit1ca6842bcd140d2d5be1b4465428771aec8bd0a0 (patch)
treecb052879cd08ed03b95fde5bfba09e83431d181f /src
parentac9f9526f97160db71bc4d80208c2fb33ae21a64 (diff)
downloadqt-creator-1ca6842bcd140d2d5be1b4465428771aec8bd0a0.tar.gz
Git: Fix compiler warnings
Unhandled enum values in switch Change-Id: I6533d8773ff4fa663a1e33c1f95c81f53790b642 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/git/gitclient.cpp7
1 files changed, 2 insertions, 5 deletions
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;