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 <stimming@tuhh.de>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17879 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-02-07 16:49:07 +00:00
parent 59f5711250
commit 5754cb3ae7

View File

@ -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));