From 4febb98a5318081e21290ad033636119a3922d08 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 6 Apr 2016 19:43:13 +0300 Subject: [PATCH] In progress... --- src/ObjectDialog.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ObjectDialog.vala b/src/ObjectDialog.vala index 65e6fe4..77e2be9 100644 --- a/src/ObjectDialog.vala +++ b/src/ObjectDialog.vala @@ -17,6 +17,12 @@ namespace LAview.Core.Plugins { //dialog.application = application; dialog.delete_event.connect ((source) => {return true;}); } + + dialog.response.connect ((response_id) => { + if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) { + dialog.hide_on_delete (); + } + }); } public void show_all () {