diff --git a/src/calibre/gui2/preferences/create_custom_column.py b/src/calibre/gui2/preferences/create_custom_column.py index e444bed104..bf6b162bde 100644 --- a/src/calibre/gui2/preferences/create_custom_column.py +++ b/src/calibre/gui2/preferences/create_custom_column.py @@ -103,13 +103,21 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn): def shortcut_activated(self, url): which = unicode(url).split(':')[-1] - self.column_type_box.setCurrentIndex(10) + self.column_type_box.setCurrentIndex({ + 'yesno': 9, + 'tags' : 1, + 'series': 3, + }.get(which, 10)) self.column_name_box.setText(which) self.column_heading_box.setText({ 'isbn':'ISBN', 'formats':_('Formats'), + 'yesno':_('Yes/No'), + 'tags': _('My Tags'), + 'series': _('My Series'), 'last_modified':_('Last Modified')}[which]) - self.composite_box.setText( + if self.composite_box.isVisible(): + self.composite_box.setText( { 'isbn': '{identifiers:select(isbn)}', 'formats': '{formats}', diff --git a/src/calibre/gui2/preferences/create_custom_column.ui b/src/calibre/gui2/preferences/create_custom_column.ui index 141d05f9a0..8ed54b6af6 100644 --- a/src/calibre/gui2/preferences/create_custom_column.ui +++ b/src/calibre/gui2/preferences/create_custom_column.ui @@ -267,7 +267,7 @@ four values, the first of them being the empty value. - Quick create: <a href="col:isbn" title="Show the books' ISBN in the column">ISBN</a>, <a href="col:formats" title="Show the books' formats in the column">Formats</a>, <a href="col:last_modified" title="Show the date the books' metadata was last modified in the column">Last Modified</a> + Quick create: <a href="col:isbn" title="Show the books' ISBN in the column">ISBN</a>, <a href="col:formats" title="Show the books' formats in the column">Formats</a>, <a href="col:last_modified" title="Show the date the books' metadata was last modified in the column">Last Modified</a>, <a href="col:yesno">Yes/No</a>, <a href="col:tags">Tags</a>, <a href="col:series">Series</a> true