Preferences -> Add your own columns: description of title and ondevice must be special-cased because they are not shown in the tag browser.

This commit is contained in:
Charles Haley 2015-11-24 18:41:28 +01:00
parent b99d56acc7
commit 46e79d6394

View File

@ -117,10 +117,15 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
fm = self.custcols[col]
else:
fm = field_metadata[col]
if col in ['title', 'ondevice']:
coltype = _('Text')
else:
dt = fm['datatype']
if fm['is_multiple']:
dt = '*' + dt
item = QTableWidgetItem(self.column_desc[dt])
coltype = self.column_desc[dt]
item = QTableWidgetItem(coltype)
self.opt_columns.setItem(row, 2, item)
desc = fm['display'].get('description', "")