mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
only process the first link; some programs give us the same link twice
This commit is contained in:
parent
f7d59cfe97
commit
b2d31fe780
1 changed files with 3 additions and 7 deletions
|
@ -942,14 +942,10 @@ class EditorWebView(AnkiWebView):
|
|||
return QMimeData()
|
||||
|
||||
def _processUrls(self, mime):
|
||||
links = []
|
||||
for url in mime.urls():
|
||||
url = url.toString()
|
||||
link = self._retrieveURL(url)
|
||||
if link:
|
||||
links.append(link)
|
||||
url = mime.urls()[0].toString()
|
||||
link = self._retrieveURL(url)
|
||||
mime = QMimeData()
|
||||
mime.setHtml("".join(links))
|
||||
mime.setHtml(link)
|
||||
return mime
|
||||
|
||||
def _processText(self, mime):
|
||||
|
|
Loading…
Reference in a new issue