Do not allow changing of activity in selection mode

This commit is contained in:
Jesse van den Kieboom 2014-07-20 16:30:36 +03:00
parent 0aa4a49d2d
commit a5ff55eef5

View file

@ -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)