[Commits] [SCM] claws branch, master, updated. 3.13.2-213-gce7c6f5

ticho at claws-mail.org ticho at claws-mail.org
Thu Jul 28 23:03:13 CEST 2016


The branch, master has been updated
       via  ce7c6f57c60fd0a36623c426807c3bc9fb3f492a (commit)
      from  b848e66f911494c9676ce74e145680c39fb5609e (commit)

Summary of changes:
 src/addressbook.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit ce7c6f57c60fd0a36623c426807c3bc9fb3f492a
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Jul 28 22:57:23 2016 +0200

    Only enable "New Book" context menu entry for internal addressbook.
    
    It was confusing to have it active on e.g. LDAP server interface,
    when it really only adds a new XML addressbook.
    
    Also, do not enable the "New" button when right-clicking the XML
    addressbook interface line, as the button doesn't do anything
    useful for interfaces.

diff --git a/src/addressbook.c b/src/addressbook.c
index 59cbce4..94579bd 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -2538,9 +2538,8 @@ static gboolean addressbook_tree_button_pressed(GtkWidget *ctree,
 		iface = adapter->interface;
 		if( !iface )
 			goto just_set_sens;
-		if( !iface->readOnly ) {
+		if( !iface->readOnly && iface->type == ADDR_IF_BOOK) {
 			cm_menu_set_sensitive_full( addrbook.ui_manager, "Popups/ABTreePopup/NewBook", TRUE );
-			gtk_widget_set_sensitive( addrbook.reg_btn, TRUE );
 		}
 		if( iface->externalQuery )
 			canLookup = TRUE;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list