Skip to content

Commit

Permalink
compare: Robustness on dnd mimetype data
Browse files Browse the repository at this point in the history
  • Loading branch information
vallsv committed Oct 2, 2023
1 parent 6abd389 commit f5e08f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/silx/gui/widgets/UrlSelectionTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ def dropMimeData(self, row: int, column: int, mimedata: qt.QMimeType, action: qt
if action == qt.Qt.IgnoreAction:
return True
if mimedata.hasFormat(constants.SILX_URI_MIMETYPE):
url = DataUrl(mimedata.text())
urlText = str(mimedata.data(constants.SILX_URI_MIMETYPE), "utf-8")
url = DataUrl(urlText)
self.addUrl(url)
return True
return False

0 comments on commit f5e08f4

Please sign in to comment.