From 3b6702cf8151014d9c15059a0a042e65893c9fbc Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Tue, 26 May 2015 10:38:53 +0200 Subject: [PATCH] Do not offer the tag editor for custom is_name columns. It destroys the order of the names. --- src/calibre/gui2/custom_column_widgets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index 0b621ea1aa..671ffedb57 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -317,8 +317,10 @@ class Text(Base): if self.sep['ui_to_list'] == '&': w.set_space_before_sep(True) w.set_add_separator(tweaks['authors_completer_append_separator']) + w.get_editor_button().setVisible(False) + else: + w.get_editor_button().clicked.connect(self.edit) w.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred) - w.get_editor_button().clicked.connect(self.edit) else: w = EditWithComplete(parent) w.set_separator(None)