Clipboard copy unicode

Copying unicode subjects to clipboard didn't work.

Fixes #183
master
mailchuck 7 years ago committed by Peter Surda
parent 113ceb0868
commit a79f6cce3b

@ -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):

Loading…
Cancel
Save