Do not use select button to modify selectable state

This commit is contained in:
Jesse van den Kieboom 2014-07-20 16:31:27 +03:00
parent 213c8fc9e4
commit 83b2ad72c2

View file

@ -874,16 +874,13 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
[GtkCallback]
private void on_select_cancel_button_clicked()
{
d_select_button.active = false;
selectable_mode = GitgExt.SelectionMode.NORMAL;
}
[Signal(action = true)]
public virtual signal void cancel()
{
if (d_select_button.active)
{
d_select_button.active = false;
}
selectable_mode = GitgExt.SelectionMode.NORMAL;
}
}