Use approx_formats when creating the formats column

Have the template used for the formats column when clicking the Formats
shortcut in the create columns dialog use approximate_formats() instead
of formats.
This commit is contained in:
Kovid Goyal 2013-09-01 09:19:56 +05:30
parent 601f6e87db
commit 508c8ea6d1

View File

@ -183,7 +183,7 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
self.composite_box.setText(
{
'isbn': '{identifiers:select(isbn)}',
'formats': '{formats}',
'formats': "{:'approximate_formats()'}",
}[which])
self.composite_sort_by.setCurrentIndex(0)