gnucash stable: Remove reference to unused assistant subfield.

Christopher Lam clam at code.gnucash.org
Thu Aug 31 08:10:30 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/f10948d2 (commit)
	from  https://github.com/Gnucash/gnucash/commit/7ce4198c (commit)



commit f10948d21d5773fdb868878f635d153d358c5df6
Author: Jeremy White <jwhite at codeweavers.com>
Date:   Mon Aug 28 13:52:27 2023 -0500

    Remove reference to unused assistant subfield.
    
    This did not cause trouble because the only use of this
    was in a call to gnc_warning_dialog, which protects against
    a NULL pointer.

diff --git a/gnucash/import-export/qif-imp/assistant-qif-import.c b/gnucash/import-export/qif-imp/assistant-qif-import.c
index 236bcea363..5a0269fd1a 100644
--- a/gnucash/import-export/qif-imp/assistant-qif-import.c
+++ b/gnucash/import-export/qif-imp/assistant-qif-import.c
@@ -109,7 +109,6 @@ enum qif_trans_cols
 struct _qifimportwindow
 {
     GtkWidget * window;
-    GtkWidget * assistant;
 
     /* Widgets on the file selection page. */
     GtkWidget * filename_entry;
@@ -2924,7 +2923,7 @@ do_page_check (gpointer user_data)
     GtkWidget *page = gtk_assistant_get_nth_page (assistant, num);
 
     gtk_assistant_set_page_complete (assistant, page,
-                                     gnc_ui_qif_import_comm_valid (GTK_ASSISTANT(wind->assistant), wind));
+                                     gnc_ui_qif_import_comm_valid (assistant, wind));
 
     wind->timeout_id = 0;
     return FALSE;



Summary of changes:
 gnucash/import-export/qif-imp/assistant-qif-import.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)



More information about the gnucash-changes mailing list