forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
ac9f9526f9
commit
1ca6842bcd
@@ -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;
|
||||
|
Reference in New Issue
Block a user