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
parent e1965849c2
commit fefad31528
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -3759,8 +3759,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):