[gitg] Reset diff when selection is empty



commit b4ecb9b1614e90ba89b5de017c0a1090ad2d812a
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Tue Jun 1 00:15:45 2010 +0200

    Reset diff when selection is empty

 gitg/gitg-revision-changes-panel.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gitg/gitg-revision-changes-panel.c b/gitg/gitg-revision-changes-panel.c
index c023055..6faec41 100644
--- a/gitg/gitg-revision-changes-panel.c
+++ b/gitg/gitg-revision-changes-panel.c
@@ -589,10 +589,7 @@ set_revision (GitgRevisionChangesPanel *changes_panel,
 		changes_panel->priv->revision = NULL;
 	}
 
-	if (changes_panel->priv->repository && changes_panel->priv->revision)
-	{
-		reload_diff (changes_panel);
-	}
+	reload_diff (changes_panel);
 }
 
 static void
@@ -600,8 +597,10 @@ on_diff_files_begin_loading (GitgRunner               *runner,
                              GitgRevisionChangesPanel *self)
 {
 	GdkCursor *cursor = gdk_cursor_new (GDK_WATCH);
+
 	gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (self->priv->diff_files)),
 	                       cursor);
+
 	gdk_cursor_unref (cursor);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]