From 19d181a90f055b8773731926ee7c27c76c919ccc Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 22 Jul 2014 13:04:38 -0500 Subject: [PATCH] Fix for .eml file dropping in add box on qt5. --- calibre-plugin/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/dialogs.py b/calibre-plugin/dialogs.py index 11cc145d..c4c784f9 100644 --- a/calibre-plugin/dialogs.py +++ b/calibre-plugin/dialogs.py @@ -207,9 +207,9 @@ class DroppableQTextEdit(QTextEdit): urllist.extend(get_urls_from_text(part.get_payload(decode=True))) else: urllist.extend(get_urls_from_text("%s"%msg)) - if urllist: self.append("\n".join(urllist)) + return None return QTextEdit.dropEvent(self,event) def canInsertFromMimeData(self, source):