mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Don't allow placeholder be selected for importing transactions. Fixes bug#327891.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13381 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f6fc0dfa91
commit
26cc119630
@ -1,5 +1,9 @@
|
|||||||
2006-02-24 Christian Stimming <stimming@tuhh.de>
|
2006-02-24 Christian Stimming <stimming@tuhh.de>
|
||||||
|
|
||||||
|
* src/import-export/import-account-matcher.c: Don't allow
|
||||||
|
placeholder be selected for importing transactions. Fixes
|
||||||
|
bug#327891.
|
||||||
|
|
||||||
* src/import-export/mt940/gnc-mt940-import.c: Get MT940 importer
|
* src/import-export/mt940/gnc-mt940-import.c: Get MT940 importer
|
||||||
compile again (experimental; requires aqbanking-1.9.7). It is not
|
compile again (experimental; requires aqbanking-1.9.7). It is not
|
||||||
yet tested with actual files. Bug#325170.
|
yet tested with actual files. Bug#325170.
|
||||||
|
@ -202,6 +202,16 @@ Account * gnc_import_select_account(const gchar * account_online_id_value,
|
|||||||
case GTK_RESPONSE_OK:
|
case GTK_RESPONSE_OK:
|
||||||
retval = gnc_tree_view_account_get_selected_account(picker->account_tree);
|
retval = gnc_tree_view_account_get_selected_account(picker->account_tree);
|
||||||
DEBUG("Selected account %p, %s", retval, xaccAccountGetName(retval));
|
DEBUG("Selected account %p, %s", retval, xaccAccountGetName(retval));
|
||||||
|
|
||||||
|
/* See if the selected account is a placeholder. */
|
||||||
|
if (xaccAccountGetPlaceholder (retval)) {
|
||||||
|
gnc_error_dialog (/* FIXME: add parent*/ NULL,
|
||||||
|
_("The account %s does not allow transactions."),
|
||||||
|
xaccAccountGetName (retval));
|
||||||
|
response = GNC_RESPONSE_NEW;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if( account_online_id_value != NULL)
|
if( account_online_id_value != NULL)
|
||||||
{
|
{
|
||||||
gnc_import_set_acc_online_id(retval, account_online_id_value);
|
gnc_import_set_acc_online_id(retval, account_online_id_value);
|
||||||
|
Loading…
Reference in New Issue
Block a user