r15985 - gnucash/trunk/src/gnome - Bug#432232: confirm SX deletion.

Josh Sled jsled at cvs.gnucash.org
Sun Apr 22 12:10:21 EDT 2007


Author: jsled
Date: 2007-04-22 12:10:21 -0400 (Sun, 22 Apr 2007)
New Revision: 15985
Trac: http://svn.gnucash.org/trac/changeset/15985

Modified:
   gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c
Log:
Bug#432232: confirm SX deletion.


Modified: gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c	2007-04-22 11:36:47 UTC (rev 15984)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c	2007-04-22 16:10:21 UTC (rev 15985)
@@ -35,27 +35,28 @@
 #include <glib/gi18n.h>
 #include "glib-compat.h"
 #include <glade/glade-xml.h>
-#include "gnc-exp-parser.h"
-#include "gnc-engine.h"
+#include "SX-book.h"
+#include "Split.h"
 #include "Transaction.h"
-#include "Split.h"
+#include "dialog-sx-editor.h"
+#include "dialog-utils.h"
+#include "gnc-book.h"
 #include "gnc-commodity.h"
+#include "gnc-component-manager.h"
+#include "gnc-dense-cal.h"
+#include "gnc-engine.h"
 #include "gnc-event.h"
-#include "gnc-dense-cal.h"
+#include "gnc-exp-parser.h"
 #include "gnc-glib-utils.h"
 #include "gnc-icons.h"
+#include "gnc-main-window.h"
 #include "gnc-plugin-page-sx-list.h"
-#include "gnc-tree-view-sx-list.h"
+#include "gnc-sx-instance-dense-cal-adapter.h"
 #include "gnc-sx-instance-model.h"
-#include "gnc-sx-instance-dense-cal-adapter.h"
 #include "gnc-sx-list-tree-model-adapter.h"
+#include "gnc-tree-view-sx-list.h"
 #include "gnc-ui-util.h"
-#include "gnc-main-window.h"
-#include "dialog-utils.h"
-#include "gnc-component-manager.h"
-#include "SX-book.h"
-#include "gnc-book.h"
-#include "dialog-sx-editor.h"
+#include "gnc-ui.h"
 
 #undef G_LOG_DOMAIN
 #define G_LOG_DOMAIN "gnc.gui.plugin-page.sx-list"
@@ -562,7 +563,12 @@
             g_debug("to-delete [%s]\n", xaccSchedXactionGetName((SchedXaction*)list->data));
         }
     }
-    g_list_foreach(to_delete, (GFunc)_destroy_sx, NULL);
+
+    if (gnc_verify_dialog(NULL, FALSE, _("Are you sure?")))
+    {
+        g_list_foreach(to_delete, (GFunc)_destroy_sx, NULL);
+    }
+
     g_list_free(to_delete);
     g_list_foreach(selected_paths, (GFunc)gtk_tree_path_free, NULL);
     g_list_free(selected_paths);



More information about the gnucash-changes mailing list