[gitg] Fix warning



commit 39cb365dea7c3f50853a54d468b5acd64907f761
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue May 28 14:56:15 2013 +0200

    Fix warning

 gitg/gitg-window.vala |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index e15b5ce..c1702f0 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -202,10 +202,14 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
 
        private void on_reload_activated()
        {
-               d_repository = new Gitg.Repository(this.repository.get_location(),
-                                                  null);
-               notify_property("repository");
-               d_views.current.reload();
+               try
+               {
+                       d_repository = new Gitg.Repository(this.repository.get_location(),
+                                                              null);
+                       notify_property("repository");
+                       d_views.current.reload();
+               }
+               catch {}
        }
 
        private void on_clone_repository()


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