[gitg/wip/clone] dash: do not signal repository_activated if repository is null



commit 40a6a63bc19df7369963ac4b87f3ad941517c6ea
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Mar 21 20:53:11 2013 +0100

    dash: do not signal repository_activated if repository is null

 libgitg-gtk/gitg-gtk-dash-view.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-dash-view.vala b/libgitg-gtk/gitg-gtk-dash-view.vala
index ce871ad..18b8cb3 100644
--- a/libgitg-gtk/gitg-gtk-dash-view.vala
+++ b/libgitg-gtk/gitg-gtk-dash-view.vala
@@ -60,7 +60,7 @@ namespace GitgGtk
                        d_listbox.child_activated.connect((listbox, child) => {
                                var data = child.get_data<RepositoryData>("data");
 
-                               if (data != null)
+                               if (data != null && data.repository != null)
                                {
                                        repository_activated(data.repository);
                                }


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