node_manager_fkie: fixed copy function in launch file browser
@@ -253,7 +253,7 @@ class LaunchListModel(QStandardItemModel):
item = self.itemFromIndex(index)
prev = '%s\n' % text if text else ''
text = '%sfile://%s' % (prev, item.path)
- mimeData.setData('text/plain', text)
+ mimeData.setData('text/plain', text.encode('utf-8'))
return mimeData
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -374,7 +374,7 @@ class LaunchListModel(QStandardItemModel):
item = self.itemFromIndex(index)
prev = '%s\n' % text if text else ''
text = '%sfile://%s' % (prev, item.path)
- mimeData.setData('text/plain', text)
+ mimeData.setData('text/plain', text.encode('utf-8'))
QApplication.clipboard().setMimeData(mimeData)
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
