aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-10-25 14:30:47 +0800
committerChris Toshok <toshok@src.gnome.org>2002-10-25 14:30:47 +0800
commitfaaf0868fd78c0e28330c8fa8b4ce874634044b4 (patch)
treedd5d59518f14c506967fe9eb32daf6bd51719488 /addressbook
parent08bf0833769e0d2e1efa3afb462bd833257acde4 (diff)
downloadgsoc2013-evolution-faaf0868fd78c0e28330c8fa8b4ce874634044b4.tar.gz
gsoc2013-evolution-faaf0868fd78c0e28330c8fa8b4ce874634044b4.tar.zst
gsoc2013-evolution-faaf0868fd78c0e28330c8fa8b4ce874634044b4.zip
[ fixes #29144 ] use e_table_memory_storage_change instead of
2002-10-24 Chris Toshok <toshok@ximian.com> [ fixes #29144 ] * gui/component/addressbook-config.c (edit_dialog_store_change): use e_table_memory_storage_change instead of remove/insert, so the selection is maintained. svn path=/trunk/; revision=18435
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/addressbook-config.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 3146b5f8f0..cfad5eb706 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2002-10-24 Chris Toshok <toshok@ximian.com>
+
+ [ fixes #29144 ]
+ * gui/component/addressbook-config.c (edit_dialog_store_change):
+ use e_table_memory_storage_change instead of remove/insert, so the
+ selection is maintained.
+
2002-10-22 Dan Winship <danw@ximian.com>
* gui/component/select-names/e-select-names.c
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index fdaee205dc..33e67c6a4e 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -1265,10 +1265,8 @@ edit_dialog_store_change (AddressbookSourceDialog *sdialog)
/* store the new source in the addressbook dialog */
old_source = e_table_memory_get_data (E_TABLE_MEMORY (dialog->sourcesModel), sdialog->source_model_row);
addressbook_source_free (old_source);
- e_table_memory_store_remove (E_TABLE_MEMORY_STORE (dialog->sourcesModel),
- sdialog->source_model_row);
- e_table_memory_store_insert (E_TABLE_MEMORY_STORE (dialog->sourcesModel),
+ e_table_memory_store_change (E_TABLE_MEMORY_STORE (dialog->sourcesModel),
sdialog->source_model_row, source, source->name, source->host);
/* and let the config control know about the change */