[geary/wip/713739-inline: 7/37] Only disconnect accelerators if they're connected



commit 7b6847c8088fa32aa1a32edf60f6888abf8a3342
Author: Robert Schroll <rschroll gmail com>
Date:   Wed Jun 5 22:58:58 2013 -0400

    Only disconnect accelerators if they're connected

 src/client/composer/composer-embed.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/client/composer/composer-embed.vala b/src/client/composer/composer-embed.vala
index 52ae712..084c4ad 100644
--- a/src/client/composer/composer-embed.vala
+++ b/src/client/composer/composer-embed.vala
@@ -113,7 +113,8 @@ public class ComposerEmbed : Gtk.Box, ComposerContainer {
     }
     
     private void on_detach() {
-        on_focus_out();
+        if (composer.editor.has_focus)
+            on_focus_out();
         composer.editor.focus_in_event.disconnect(on_focus_in);
         composer.editor.focus_out_event.disconnect(on_focus_out);
         remove(composer);


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