From 5754cb3ae76febacdd743932075de72ed9a4691a Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 7 Feb 2009 16:49:07 +0000 Subject: [PATCH] Fix use of "=" in if statement where "==" was intended This fixes the default currency and description in the new account dialog. Patch by Alan Jenkins. Signed-off-by: Christian Stimming BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17879 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/dialog-account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c index 0b2538b9cc..f738aa1a7a 100644 --- a/src/gnome-utils/dialog-account.c +++ b/src/gnome-utils/dialog-account.c @@ -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));