From 4e4d50eff601eba4e05b10c77d875c14bb784372 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Feb 2015 10:24:58 +0530 Subject: [PATCH] Edit book: Disallow drag and drop of documents onto the preview panel to workaround crashing bug in Qt. Fixes #1416752 [Drag and Drop Image Crashes Editor](https://bugs.launchpad.net/calibre/+bug/1416752) --- src/calibre/gui2/tweak_book/preview.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tweak_book/preview.py b/src/calibre/gui2/tweak_book/preview.py index a35ed827a2..04251aa538 100644 --- a/src/calibre/gui2/tweak_book/preview.py +++ b/src/calibre/gui2/tweak_book/preview.py @@ -364,6 +364,7 @@ class WebView(QWebView): self.setPage(self._page) self.inspector.setPage(self._page) self.clear() + self.setAcceptDrops(False) def sizeHint(self): return self._size_hint