mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9542 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9f58eb2621
commit
eb069af1c6
@ -244,17 +244,17 @@ void gnc_import_TransInfo_delete (GNCImportTransInfo *info)
|
|||||||
/*If the transaction is still open, it must be destroyed*/
|
/*If the transaction is still open, it must be destroyed*/
|
||||||
if(xaccTransIsOpen(info->trans)==TRUE)
|
if(xaccTransIsOpen(info->trans)==TRUE)
|
||||||
{
|
{
|
||||||
xaccTransDestroy(info->trans);
|
xaccTransDestroy(info->trans);
|
||||||
xaccTransCommitEdit(info->trans);
|
xaccTransCommitEdit(info->trans);
|
||||||
}
|
}
|
||||||
if (info->match_tokens)
|
if (info->match_tokens)
|
||||||
{
|
{
|
||||||
GList *node;
|
GList *node;
|
||||||
|
|
||||||
for (node = info->match_tokens; node; node = node->next)
|
for (node = info->match_tokens; node; node = node->next)
|
||||||
g_free (node->data);
|
g_free (node->data);
|
||||||
|
|
||||||
g_list_free (info->match_tokens);
|
g_list_free (info->match_tokens);
|
||||||
}
|
}
|
||||||
g_free(info);
|
g_free(info);
|
||||||
}
|
}
|
||||||
|
@ -32,14 +32,12 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "import-utilities.h"
|
#include "import-utilities.h"
|
||||||
|
#include "kvp_frame.h"
|
||||||
#include "Account.h"
|
#include "Account.h"
|
||||||
#include "Transaction.h"
|
#include "Transaction.h"
|
||||||
|
|
||||||
#include "gnc-engine-util.h"
|
#include "gnc-engine-util.h"
|
||||||
|
|
||||||
|
|
||||||
static short module = MOD_IMPORT;
|
|
||||||
|
|
||||||
/********************************************************************\
|
/********************************************************************\
|
||||||
* Setter and getter functions for the online_id kvp frame in
|
* Setter and getter functions for the online_id kvp frame in
|
||||||
* Account and Transaction
|
* Account and Transaction
|
||||||
@ -57,7 +55,7 @@ void gnc_import_set_acc_online_id(Account * account,
|
|||||||
{
|
{
|
||||||
kvp_frame * frame;
|
kvp_frame * frame;
|
||||||
frame = xaccAccountGetSlots(account);
|
frame = xaccAccountGetSlots(account);
|
||||||
kvp_frame_set_string(frame, "online_id", string_value);
|
kvp_frame_set_str(frame, "online_id", string_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const gchar * gnc_import_get_trans_online_id(Transaction * transaction)
|
const gchar * gnc_import_get_trans_online_id(Transaction * transaction)
|
||||||
@ -72,7 +70,7 @@ void gnc_import_set_trans_online_id(Transaction * transaction,
|
|||||||
{
|
{
|
||||||
kvp_frame * frame;
|
kvp_frame * frame;
|
||||||
frame = xaccTransGetSlots(transaction);
|
frame = xaccTransGetSlots(transaction);
|
||||||
kvp_frame_set_string (frame, "online_id", string_value);
|
kvp_frame_set_str (frame, "online_id", string_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @} */
|
/* @} */
|
||||||
|
Loading…
Reference in New Issue
Block a user