[gitg] Set default overwrite response for patch to OK



commit 5c6c982b915b56d2d48cb892c368d921820c23b2
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat Aug 8 11:32:23 2015 +0200

    Set default overwrite response for patch to OK

 gitg/gitg-commit-action-create-patch.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-commit-action-create-patch.vala b/gitg/gitg-commit-action-create-patch.vala
index 93f4786..fd10684 100644
--- a/gitg/gitg-commit-action-create-patch.vala
+++ b/gitg/gitg-commit-action-create-patch.vala
@@ -147,6 +147,8 @@ class CommitActionCreatePatch : GitgExt.UIElement, GitgExt.Action, GitgExt.Commi
                                                        _("_Save Patch"),
                                                        Gtk.ResponseType.OK);
 
+               chooser.set_default_response(Gtk.ResponseType.OK);
+
                chooser.do_overwrite_confirmation = true;
                chooser.set_current_name(patch_filename(1));
 


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