[balsa] main: Save the config files



commit c6c15c79a2c06e03d5fedb99e613bedd6e3ffbcc
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Feb 24 11:04:13 2020 -0500

    main: Save the config files
    
    * src/main.c (balsa_shutdown_cb): the only case where Balsa must
      not go through the shutdown procedure is when it is called
      with the -s/--get-stats option; in that case, nothing has been
      set up, and balsa-app-destroy would cause all sorts of havoc.

 ChangeLog  | 9 +++++++++
 src/main.c | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 91e010f45..7a50bdd8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-02-24  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       main: Save the config files
+
+       * src/main.c (balsa_shutdown_cb): the only case where Balsa must
+         not go through the shutdown procedure is when it is called
+         with the -s/--get-stats option; in that case, nothing has been
+         set up, and balsa-app-destroy would cause all sorts of havoc.
+
 2020-02-24  Peter Bloomfield  <pbloomfield bellsouth net>
 
        main: Use non-copying GVariant formats
diff --git a/src/main.c b/src/main.c
index 58826a3d0..37fb0be0c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -564,7 +564,7 @@ balsa_startup_cb(GApplication *application,
 static void
 balsa_shutdown_cb(void)
 {
-    if (balsa_app.main_window == NULL)
+    if (cmd_get_stats)
         return;
 
     balsa_app_destroy();


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