[gitg] Make sure passed action is never null



commit c121850399db6d13db8754f0e43eef27a5028ba9
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue Oct 30 11:04:10 2012 +0100

    Make sure passed action is never null

 gitg/gitg-window.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 856c885..9101d52 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -110,7 +110,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
 		d_views.foreach((element) => {
 			GitgExt.View view = (GitgExt.View)element;
 
-			if (view.is_default_for(d_action))
+			if (view.is_default_for(d_action != null ? d_action : ""))
 			{
 				if (d_views.current == view)
 				{



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