[gitg] Fix comparison of correct enum
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix comparison of correct enum
- Date: Tue, 11 Jan 2011 12:12:07 +0000 (UTC)
commit ee4be20081939e6434974ab04c0a5033a50a97ad
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Tue Jan 11 13:11:55 2011 +0100
Fix comparison of correct enum
Patch by Anders Kaseorg, fixes bug #638050
libgitg/gitg-commit.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-commit.c b/libgitg/gitg-commit.c
index d533b55..8f0529d 100644
--- a/libgitg/gitg-commit.c
+++ b/libgitg/gitg-commit.c
@@ -709,7 +709,7 @@ refresh_changes (GitgCommit *commit, GitgChangedFile *file)
GitgChangedFileStatus status = gitg_changed_file_get_status (file);
if (changes == GITG_CHANGED_FILE_CHANGES_NONE &&
- status == GITG_CHANGED_FILE_CHANGES_NONE)
+ status == GITG_CHANGED_FILE_STATUS_NONE)
{
gitg_changed_file_set_status (file,
GITG_CHANGED_FILE_STATUS_NEW);
@@ -722,7 +722,7 @@ refresh_changes (GitgCommit *commit, GitgChangedFile *file)
}
if (status == GITG_CHANGED_FILE_STATUS_NEW &&
- ! (changes & GITG_CHANGED_FILE_CHANGES_CACHED))
+ !(changes & GITG_CHANGED_FILE_CHANGES_CACHED))
{
gitg_changed_file_set_changes (file,
GITG_CHANGED_FILE_CHANGES_UNSTAGED);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]