Git: Fix compiler warnings

Unhandled enum values in switch

Change-Id: I6533d8773ff4fa663a1e33c1f95c81f53790b642
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Orgad Shaneh
2013-10-05 21:09:49 +03:00
committed by Orgad Shaneh
parent ac9f9526f9
commit 1ca6842bcd

View File

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