[gitg/vala] Set sort mode after resetting walker
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Set sort mode after resetting walker
- Date: Fri, 6 Jul 2012 17:37:20 +0000 (UTC)
commit 53d41e0321792c3405187b3ebe368c86924c5e55
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Fri Jul 6 18:49:40 2012 +0200
Set sort mode after resetting walker
libgitg/gitg-commit-model.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-commit-model.vala b/libgitg/gitg-commit-model.vala
index 211f3f1..c5969ec 100644
--- a/libgitg/gitg-commit-model.vala
+++ b/libgitg/gitg-commit-model.vala
@@ -206,8 +206,6 @@ public class CommitModel : Object
try
{
d_walker = new Ggit.RevisionWalker(d_repository);
- d_walker.set_sort_mode(Ggit.SortMode.TOPOLOGICAL |
- Ggit.SortMode.TIME);
}
catch
{
@@ -217,6 +215,7 @@ public class CommitModel : Object
}
d_walker.reset();
+ d_walker.set_sort_mode(Ggit.SortMode.TOPOLOGICAL | Ggit.SortMode.TIME);
foreach (Ggit.OId oid in included)
{
@@ -262,6 +261,7 @@ public class CommitModel : Object
try
{
id = d_walker.next();
+
if (id == null)
{
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]