~mdoyen/homebank/trunk

« back to all changes in this revision

Viewing changes to src/hb-xml.c

  • Committer: Maxime Doyen
  • Date: 2020-09-06 09:50:00 UTC
  • Revision ID: homebank@free.fr-20200906095000-05h4na2yv8ab58p5
5.4.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
570
570
        }
571
571
 
572
572
        //all attribute loaded: append
573
 
        da_asg_append(entry);
 
573
        //#1892828 append change the pos...
 
574
        //da_asg_append(entry);
 
575
        da_asg_insert(entry);
574
576
 
575
577
}
576
578
 
973
975
        v_buffer = g_strstr_len(buffer+13, 50, "d=");
974
976
        if( v_buffer )
975
977
        {
976
 
                DB( g_print(" d=%s)\n\n", v_buffer) );
 
978
                //TODO: beware here of we display all the file...
 
979
                DB( g_print(" d=%.25s)\n\n", v_buffer) );
977
980
        
978
981
                ctx->data_version = atoi(v_buffer+3);
979
982
        }
1126
1129
                        //fix payee defaut payment to int xfer from 5.1
1127
1130
                        dosanity = TRUE;
1128
1131
                }
1129
 
 
1130
1132
                if( ctx.file_version < 1.4 )    // <= 5.3 
1131
1133
                {
1132
1134
                        homebank_upgrade_to_v14();
1134
1136
                }
1135
1137
                // next ?
1136
1138
 
1137
 
                
1138
 
                // always run sanity check after upgrade
 
1139
 
 
1140
                // sanity check at last
1139
1141
                if( dosanity == TRUE )
1140
1142
                        hbfile_sanity_check();
1141
1143
 
1799
1801
GError *error = NULL;
1800
1802
 
1801
1803
        io = g_io_channel_new_file(filename, "w", &error);
 
1804
        //The default encoding for the external file is UTF-8.
1802
1805
        if(error)
1803
1806
        {
1804
1807
                g_warning("unable to save file %s: %s", filename, error->message);