[gnome-documents] embed: Handle the password dialog being deleted



commit ce014a4699c7b3b7f1f1395ea0bc0f54f0291936
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 24 10:50:30 2014 +0100

    embed: Handle the password dialog being deleted
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700716

 src/embed.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 18ea2f5..8249c9b 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -421,7 +421,7 @@ const Embed = new Lang.Class({
         dialog.widget.connect('response', Lang.bind(this,
             function(widget, response) {
                 dialog.widget.destroy();
-                if (response == Gtk.ResponseType.CANCEL)
+                if (response == Gtk.ResponseType.CANCEL || response == Gtk.ResponseType.DELETE_EVENT)
                     Application.documentManager.setActiveItem(null);
             }));
     },


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