* src/business/business-gnome/dialog-customer.c:

* src/business/business-gnome/dialog-vendor.c:
	  - Fix the window title to use the company name, not the contact name
	  - Change the message when the company name is left blank.
	Fixes #109754


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8473 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-05-30 21:24:35 +00:00
parent 694375f3cf
commit 7f0cc4fb70
3 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2003-05-30 Derek Atkins <derek@ihtfp.com>
* src/business/business-gnome/dialog-customer.c:
* src/business/business-gnome/dialog-vendor.c:
- Fix the window title to use the company name, not the contact name
- Change the message when the company name is left blank.
Fixes #109754
2003-05-30 Christian Stimming <stimming@tuhh.de>
* lib/guppi-legend.patch: Include patch for Guppi that fixes

View File

@ -231,7 +231,10 @@ gnc_customer_window_ok_cb (GtkWidget *widget, gpointer data)
/* Check for valid company name */
if (check_entry_nonempty (cw->dialog, cw->company_entry,
_("You must enter a company name.")))
_("You must enter a company name.\n"
"If this customer is an individual (and not a company) "
"you should set the \"company name\" and \"contact name\" "
"the same.")))
return;
/* Make sure we have an address */
@ -323,7 +326,7 @@ gnc_customer_name_changed_cb (GtkWidget *widget, gpointer data)
if (!cw)
return;
name = gtk_entry_get_text (GTK_ENTRY (cw->name_entry));
name = gtk_entry_get_text (GTK_ENTRY (cw->company_entry));
if (!name || *name == '\0')
name = _("<No name>");

View File

@ -169,7 +169,10 @@ gnc_vendor_window_ok_cb (GtkWidget *widget, gpointer data)
/* Check for valid company name */
if (check_entry_nonempty (vw->dialog, vw->company_entry,
_("You must enter a company name.")))
_("You must enter a company name.\n"
"If this vendor is an individual (and not a company) "
"you should set the \"company name\" and \"contact name\" "
"the same.")))
return;
/* Make sure we have an address */
@ -246,7 +249,7 @@ gnc_vendor_name_changed_cb (GtkWidget *widget, gpointer data)
if (!vw)
return;
name = gtk_entry_get_text (GTK_ENTRY (vw->name_entry));
name = gtk_entry_get_text (GTK_ENTRY (vw->company_entry));
if (!name || *name == '\0')
name = _("<No name>");