mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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()
|
return QMimeData()
|
||||||
|
|
||||||
def _processUrls(self, mime):
|
def _processUrls(self, mime):
|
||||||
links = []
|
url = mime.urls()[0].toString()
|
||||||
for url in mime.urls():
|
link = self._retrieveURL(url)
|
||||||
url = url.toString()
|
|
||||||
link = self._retrieveURL(url)
|
|
||||||
if link:
|
|
||||||
links.append(link)
|
|
||||||
mime = QMimeData()
|
mime = QMimeData()
|
||||||
mime.setHtml("".join(links))
|
mime.setHtml(link)
|
||||||
return mime
|
return mime
|
||||||
|
|
||||||
def _processText(self, mime):
|
def _processText(self, mime):
|
||||||
|
|
Loading…
Reference in a new issue