aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-03-26 12:09:18 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-03-26 12:09:18 +0800
commit373a930405e4d2dd867bf8f8f81b9fbde47a9871 (patch)
treed0c786d6ab4a0bd6b1e589da7ca968b91ef05e13 /addressbook
parent047bd6e78e58fa139c193b799bf503fb0dd2afee (diff)
downloadgsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar
gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.gz
gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.bz2
gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.lz
gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.xz
gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.tar.zst
gsoc2013-evolution-373a930405e4d2dd867bf8f8f81b9fbde47a9871.zip
do eab_editor_is_valid check only when user wants to save.
2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/eab-editor.c (eab_editor_prompt_to_save_changes) : do eab_editor_is_valid check only when user wants to save. svn path=/trunk/; revision=25191
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/eab-editor.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 55d5f550f8..526bfc83bd 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com>
+
+ * gui/component/eab-editor.c (eab_editor_prompt_to_save_changes) :
+ do eab_editor_is_valid check only when user wants to save.
+
2004-03-24 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook-component.c
diff --git a/addressbook/gui/contact-editor/eab-editor.c b/addressbook/gui/contact-editor/eab-editor.c
index 6bba65c0e1..354044a607 100644
--- a/addressbook/gui/contact-editor/eab-editor.c
+++ b/addressbook/gui/contact-editor/eab-editor.c
@@ -250,16 +250,15 @@ eab_editor_get_window (EABEditor *editor)
gboolean
eab_editor_prompt_to_save_changes (EABEditor *editor, GtkWindow *window)
{
- if (!eab_editor_is_valid (editor)) {
- /* XXX pop up dialog about things being invalid */
- return FALSE;
- }
-
if (!eab_editor_is_changed (editor))
return TRUE;
switch (eab_prompt_save_dialog (window)) {
case GTK_RESPONSE_YES:
+ if (!eab_editor_is_valid (editor)) {
+ /* XXX pop up dialog about things being invalid */
+ return FALSE;
+ }
eab_editor_save_contact (editor, FALSE);
return TRUE;
case GTK_RESPONSE_NO: