Clipboard copy unicode
Copying unicode subjects to clipboard didn't work. Fixes #183
This commit is contained in:
parent
e1965849c2
commit
fefad31528
|
@ -3759,8 +3759,9 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
text = str(tableWidget.item(currentRow, currentColumn).label)
|
text = str(tableWidget.item(currentRow, currentColumn).label)
|
||||||
else:
|
else:
|
||||||
text = tableWidget.item(currentRow, currentColumn).data(Qt.UserRole)
|
text = tableWidget.item(currentRow, currentColumn).data(Qt.UserRole)
|
||||||
|
text = unicode(str(text), 'utf-8', 'ignore')
|
||||||
clipboard = QtGui.QApplication.clipboard()
|
clipboard = QtGui.QApplication.clipboard()
|
||||||
clipboard.setText(str(text))
|
clipboard.setText(text)
|
||||||
|
|
||||||
#set avatar functions
|
#set avatar functions
|
||||||
def on_action_TreeWidgetSetAvatar(self):
|
def on_action_TreeWidgetSetAvatar(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user