[geary/wip/713739-inline: 22/37] Close composers correctly during exit



commit 124addc06b0b30288dc3efa01f31a8d8e33c4671
Author: Robert Schroll <rschroll gmail com>
Date:   Thu May 15 15:53:31 2014 -0700

    Close composers correctly during exit

 src/client/application/geary-controller.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 0d5eaa9..2465129 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -1781,13 +1781,13 @@ public class GearyController : Geary.BaseObject {
                 // Hide any existing composer windows for the moment; actually deleting the windows
                 // will result in their removal from composer_windows, which could crash this loop.
                 composers_to_destroy.add(cw);
-                cw.hide();
+                ((ComposerContainer) cw.parent).vanish();
             }
         }
         
         // Safely destroy windows.
         foreach(ComposerWidget cw in composers_to_destroy)
-            cw.destroy();
+            ((ComposerContainer) cw.parent).close();
         
         // If we cancelled the quit we can bail here.
         if (quit_cancelled) {


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