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)

This commit is contained in:
Kovid Goyal 2015-02-01 10:24:58 +05:30
parent bdf4e01d7a
commit 4e4d50eff6

View File

@ -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