[Gnucash-changes] r13871 - gnucash/trunk - Finishing all pending
transactions before new and open commands, not
David Hampton
hampton at cvs.gnucash.org
Fri Apr 28 16:46:56 EDT 2006
Author: hampton
Date: 2006-04-28 16:46:55 -0400 (Fri, 28 Apr 2006)
New Revision: 13871
Trac: http://svn.gnucash.org/trac/changeset/13871
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
Log:
Finishing all pending transactions before new and open commands, not
just save commands. Fixes #334090.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-04-28 13:01:30 UTC (rev 13870)
+++ gnucash/trunk/ChangeLog 2006-04-28 20:46:55 UTC (rev 13871)
@@ -1,3 +1,9 @@
+2006-04-28 David Hampton <hampton at employees.org>
+
+ * src/gnome/gnc-plugin-basic-commands.c: Finishing all pending
+ transactions before new and open commands, not just save commands.
+ Fixes #334090.
+
2006-04-27 Christian Stimming <stimming at tuhh.de>
* po/fr.po: Updated French translation by Fabrice Kurz
Modified: gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c 2006-04-28 13:01:30 UTC (rev 13870)
+++ gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c 2006-04-28 20:46:55 UTC (rev 13871)
@@ -298,6 +298,9 @@
static void
gnc_main_window_cmd_file_new (GtkAction *action, GncMainWindowActionData *data)
{
+ if (!gnc_main_window_all_finish_pending())
+ return;
+
gnc_file_new ();
/* FIXME GNOME 2 Port (update the title etc.) */
}
@@ -307,6 +310,9 @@
{
g_return_if_fail (data != NULL);
+ if (!gnc_main_window_all_finish_pending())
+ return;
+
gnc_window_set_progressbar_window (GNC_WINDOW(data->window));
gnc_file_open ();
gnc_window_set_progressbar_window (NULL);
More information about the gnucash-changes
mailing list