8598: Drop text on Clipboard crashes with byte/string issue
This commit is contained in:
parent
51402bd486
commit
5d3a7edaa3
@ -635,12 +635,12 @@ class ClipText(ClipWrapper):
|
||||
def __init__(self, dbstate, obj):
|
||||
super(ClipText, self).__init__(dbstate, obj)
|
||||
self._type = _("Text")
|
||||
self._pickle = self._obj
|
||||
self._pickle = str(self._obj, "utf-8")
|
||||
self.refresh()
|
||||
|
||||
def refresh(self):
|
||||
self._title = _("Text")
|
||||
self._value = self._obj
|
||||
self._value = str(self._obj, "utf-8")
|
||||
|
||||
class ClipMediaObj(ClipHandleWrapper):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user