Clipboard copy unicode

Copying unicode subjects to clipboard didn't work.

Fixes #183
This commit is contained in:
mailchuck 2016-03-12 08:49:20 +01:00 committed by Peter Surda
parent 113ceb0868
commit a79f6cce3b

View File

@ -3758,8 +3758,9 @@ class MyForm(settingsmixin.SMainWindow):
text = str(tableWidget.item(currentRow, currentColumn).label)
else:
text = tableWidget.item(currentRow, currentColumn).data(Qt.UserRole)
text = unicode(str(text), 'utf-8', 'ignore')
clipboard = QtGui.QApplication.clipboard()
clipboard.setText(str(text))
clipboard.setText(text)
#set avatar functions
def on_action_TreeWidgetSetAvatar(self):