[gitg] Do not allow changing of activity in selection mode



commit a5ff55eef572b9ff7a7441db887ff30161542137
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jul 20 16:30:36 2014 +0300

    Do not allow changing of activity in selection mode

 gitg/gitg-window.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 7120118..a87cad1 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -97,6 +97,11 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
        [Signal(action = true)]
        public virtual signal bool change_to_activity(int i)
        {
+               if (d_selectable_mode == GitgExt.SelectionMode.SELECTION)
+               {
+                       return false;
+               }
+
                if (i == 0)
                {
                        if (d_mode == Mode.ACTIVITY)


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