mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
Change to url drop/paste to stop doubled URLs from Chrome.
This commit is contained in:
@@ -60,9 +60,8 @@ class DroppableQTextEdit(QTextEdit):
|
||||
return QTextEdit.canInsertFromMimeData(self,source)
|
||||
|
||||
def insertFromMimeData(self, source):
|
||||
if source.hasUrls():
|
||||
for u in source.urls():
|
||||
self.append(u.toString())
|
||||
if source.hasText():
|
||||
self.append(source.text())
|
||||
else:
|
||||
return QTextEdit.insertFromMimeData(self, source)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user