aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-08-28 16:27:20 +0800
committerChris Toshok <toshok@src.gnome.org>2002-08-28 16:27:20 +0800
commit088f9fb35d14eee857a335ace7e3f1fd55b3cf79 (patch)
tree1c776503a2ef7616be773ae8566e5b364bcccce7 /addressbook/gui
parent696e47cd0f31a9ff86754fc643af548a1ee000eb (diff)
downloadgsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.tar
gsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.tar.gz
gsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.tar.bz2
gsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.tar.lz
gsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.tar.xz
gsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.tar.zst
gsoc2013-evolution-088f9fb35d14eee857a335ace7e3f1fd55b3cf79.zip
[ fixes #19286 ] confirm deletion of contacts when using the menubar or
2002-08-28 Chris Toshok <toshok@ximian.com> [ fixes #19286 ] * gui/component/addressbook.c (delete_contact_cb): confirm deletion of contacts when using the menubar or toolbar. svn path=/trunk/; revision=17888
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index ee761fb755..4a40762a91 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -101,8 +101,10 @@ static void
delete_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
{
AddressbookView *view = (AddressbookView *) user_data;
- if (view->view)
- e_addressbook_view_delete_selection(view->view);
+ if (view->view) {
+ if (e_contact_editor_confirm_delete (GTK_WIDGET (view>view)))
+ e_addressbook_view_delete_selection(view->view);
+ }
}
static void