Make double-click open edit dialog also for addressbook datasources.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 9 Apr 2016 22:57:15 +0000 (00:57 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 9 Apr 2016 22:57:15 +0000 (00:57 +0200)
For example, LDAP servers.

src/addressbook.c

index 0304c1f..80599f8 100644 (file)
@@ -2504,7 +2504,8 @@ static gboolean addressbook_tree_button_pressed(GtkWidget *ctree,
                        if( obj == NULL )
                                return FALSE;
 
-                       if (obj->type == ADDR_ITEM_GROUP) {
+                       if (obj->type == ADDR_ITEM_GROUP ||
+                                       obj->type == ADDR_DATASOURCE) {
                                /* edit group */
                                addressbook_treenode_edit_cb(NULL, NULL);
                        } else {