Helpviewer/UrlBar/UrlBar.py

changeset 4332
64034d85c709
parent 4331
711e7c35a49b
child 4631
5c1a96925da4
equal deleted inserted replaced
4331:711e7c35a49b 4332:64034d85c709
432 432
433 url = QUrl() 433 url = QUrl()
434 if mimeData.hasUrls(): 434 if mimeData.hasUrls():
435 url = mimeData.urls()[0] 435 url = mimeData.urls()[0]
436 elif mimeData.hasText(): 436 elif mimeData.hasText():
437 url = QUrl.fromEncoded(mimeData.text().encode("utf-8"), QUrl.TolerantMode) 437 url = QUrl.fromEncoded(mimeData.text().encode("utf-8"),
438 QUrl.TolerantMode)
438 439
439 if url.isEmpty() or not url.isValid(): 440 if url.isEmpty() or not url.isValid():
440 E5LineEdit.dropEvent(self, evt) 441 E5LineEdit.dropEvent(self, evt)
441 return 442 return
442 443

eric ide

mercurial