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 () {