From 6925559f5f64ea8514cfc93b7962c720c3028996 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 27 Oct 2020 14:13:48 -0500 Subject: [PATCH] Allow story URLs edit box to edit--remove *FromMimeData() methods. --- calibre-plugin/dialogs.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/calibre-plugin/dialogs.py b/calibre-plugin/dialogs.py index 4a7233a1..7f89faa4 100644 --- a/calibre-plugin/dialogs.py +++ b/calibre-plugin/dialogs.py @@ -194,18 +194,6 @@ class DroppableQTextEdit(QTextEdit): return None return QTextEdit.dropEvent(self,event) - def canInsertFromMimeData(self, source): - if source.hasUrls(): - return True - else: - return QTextEdit.canInsertFromMimeData(self,source) - - def insertFromMimeData(self, source): - if source.hasText(): - self.append(source.text()) - else: - return QTextEdit.insertFromMimeData(self, source) - class AddNewDialog(SizePersistedDialog): go_signal = pyqtSignal(object, object, object, object)