r22419 - gnucash/trunk/src/import-export/aqbanking - Aqbanking plugin: Cache pointer to GncMainWindow each time the plugin command is started.
Christian Stimming
cstim at code.gnucash.org
Sun Sep 23 15:53:30 EDT 2012
Author: cstim
Date: 2012-09-23 15:53:29 -0400 (Sun, 23 Sep 2012)
New Revision: 22419
Trac: http://svn.gnucash.org/trac/changeset/22419
Modified:
gnucash/trunk/src/import-export/aqbanking/gnc-plugin-aqbanking.c
Log:
Aqbanking plugin: Cache pointer to GncMainWindow each time the plugin command is started.
Hopefully fixes bug#684632.
Modified: gnucash/trunk/src/import-export/aqbanking/gnc-plugin-aqbanking.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-plugin-aqbanking.c 2012-09-23 06:09:53 UTC (rev 22418)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-plugin-aqbanking.c 2012-09-23 19:53:29 UTC (rev 22419)
@@ -467,6 +467,7 @@
gnc_plugin_ab_cmd_setup(GtkAction *action, GncMainWindowActionData *data)
{
ENTER("action %p, main window data %p", action, data);
+ gnc_main_window = data->window;
gnc_ab_initial_assistant();
LEAVE(" ");
}
@@ -485,6 +486,7 @@
return;
}
+ gnc_main_window = data->window;
gnc_ab_getbalance(GTK_WIDGET(data->window), account);
LEAVE(" ");
@@ -505,6 +507,7 @@
return;
}
+ gnc_main_window = data->window;
gnc_ab_gettrans(GTK_WIDGET(data->window), account);
LEAVE(" ");
@@ -525,6 +528,7 @@
return;
}
+ gnc_main_window = data->window;
gnc_ab_maketrans(GTK_WIDGET(data->window), account, SINGLE_TRANSFER);
LEAVE(" ");
@@ -545,6 +549,7 @@
return;
}
+ gnc_main_window = data->window;
gnc_ab_maketrans(GTK_WIDGET(data->window), account,
SINGLE_INTERNAL_TRANSFER);
@@ -566,6 +571,7 @@
return;
}
+ gnc_main_window = data->window;
gnc_ab_maketrans(GTK_WIDGET(data->window), account, SINGLE_DEBITNOTE);
LEAVE(" ");
@@ -594,6 +600,7 @@
{
gchar *format = gnc_gconf_get_string(GCONF_SECTION_AQBANKING,
KEY_FORMAT_SWIFT940, NULL);
+ gnc_main_window = data->window;
gnc_file_aqbanking_import("swift", format ? format : "swift-mt940", FALSE);
g_free(format);
}
@@ -603,6 +610,7 @@
{
gchar *format = gnc_gconf_get_string(GCONF_SECTION_AQBANKING,
KEY_FORMAT_SWIFT942, NULL);
+ gnc_main_window = data->window;
gnc_file_aqbanking_import("swift", format ? format : "swift-mt942", FALSE);
g_free(format);
}
@@ -612,6 +620,7 @@
{
gchar *format = gnc_gconf_get_string(GCONF_SECTION_AQBANKING,
KEY_FORMAT_DTAUS, NULL);
+ gnc_main_window = data->window;
gnc_file_aqbanking_import("dtaus", format ? format : "default", FALSE);
g_free(format);
}
@@ -622,6 +631,7 @@
{
gchar *format = gnc_gconf_get_string(GCONF_SECTION_AQBANKING,
KEY_FORMAT_DTAUS, NULL);
+ gnc_main_window = data->window;
gnc_file_aqbanking_import("dtaus", format ? format : "default", TRUE);
g_free(format);
}
More information about the gnucash-changes
mailing list