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



commit 85978fede786e83f27c75514de359055dcbe88b3
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 8471da8..0f4659e 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -426,7 +426,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]