Skip to content

Commit

Permalink
Fix use of "=" in if statement where "==" was intended
Browse files Browse the repository at this point in the history
This fixes the default currency and description in the new account dialog.

Patch by Alan Jenkins.

Signed-off-by: Christian Stimming <stimming@tuhh.de>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17879 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
cstim committed Feb 7, 2009
1 parent 59f5711 commit 5754cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gnome-utils/dialog-account.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ gnc_ui_new_account_window_internal (QofBook *book,

if (default_commodity != NULL) {
commodity = default_commodity;
if ((aw->type = ACCT_TYPE_STOCK) || (aw->type = ACCT_TYPE_MUTUAL))
if ((aw->type == ACCT_TYPE_STOCK) || (aw->type == ACCT_TYPE_MUTUAL))
{
gtk_entry_set_text(GTK_ENTRY(aw->name_entry),
(gpointer) gnc_commodity_get_mnemonic(commodity));
Expand Down

0 comments on commit 5754cb3

Please sign in to comment.