Skip to content

Commit

Permalink
For aqbanking, take into account the actual purpose line length that …
Browse files Browse the repository at this point in the history
…is given from aqbanking.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23662 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
cstim committed Jan 2, 2014
1 parent 2ee26b3 commit f3e0929
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/import-export/aqb/dialog-ab-trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,19 @@ gnc_ab_trans_dialog_run_until_ok(GncABTransDialog *td)
gtk_widget_set_sensitive(td->purpose_cont_entry, max_purpose_lines > 1);
gtk_widget_set_sensitive(td->purpose_cont2_entry, max_purpose_lines > 2);
gtk_widget_set_sensitive(td->purpose_cont3_entry, max_purpose_lines > 3);
if (joblimits)
{
gtk_entry_set_max_length(GTK_ENTRY(td->purpose_entry),
AB_TransactionLimits_GetMaxLenPurpose(joblimits));
gtk_entry_set_max_length(GTK_ENTRY(td->purpose_cont_entry),
AB_TransactionLimits_GetMaxLenPurpose(joblimits));
gtk_entry_set_max_length(GTK_ENTRY(td->purpose_cont2_entry),
AB_TransactionLimits_GetMaxLenPurpose(joblimits));
gtk_entry_set_max_length(GTK_ENTRY(td->purpose_cont3_entry),
AB_TransactionLimits_GetMaxLenPurpose(joblimits));
gtk_entry_set_max_length(GTK_ENTRY(td->recp_name_entry),
AB_TransactionLimits_GetMaxLenRemoteName(joblimits));
}

/* Show the dialog */
gtk_widget_show(td->dialog);
Expand Down

0 comments on commit f3e0929

Please sign in to comment.