Remove line breaks in ServiceManager

bzr-revno: 1054
Fixes: https://launchpad.net/bugs/642788
This commit is contained in:
Tim Bentley 2010-09-23 18:45:49 +01:00
commit 17132f0505

View File

@ -559,7 +559,7 @@ class ServiceManager(QtGui.QWidget):
QtCore.QVariant(item[u'order']))
for count, frame in enumerate(serviceitem.get_frames()):
treewidgetitem1 = QtGui.QTreeWidgetItem(treewidgetitem)
text = frame[u'title']
text = frame[u'title'].replace(u'\n', u' ')
treewidgetitem1.setText(0, text[:40])
treewidgetitem1.setData(0, QtCore.Qt.UserRole,
QtCore.QVariant(count))