mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 23:22:58 +02:00
Prevent the inspector dock from being floated as QWebInspector does not work in a floating dock
This commit is contained in:
parent
7bd0431ea5
commit
4ff164f9ca
1 changed files with 2 additions and 0 deletions
|
|
@ -480,6 +480,8 @@ def create(name, oname):
|
|||
d.setWidget(self.preview.inspector)
|
||||
self.preview.inspector.setParent(d)
|
||||
self.addDockWidget(Qt.BottomDockWidgetArea, d)
|
||||
d.close() # By default the inspector window is closed
|
||||
d.setFeatures(d.DockWidgetClosable | d.DockWidgetMovable) # QWebInspector does not work in a floating dock
|
||||
|
||||
def resizeEvent(self, ev):
|
||||
self.blocking_job.resize(ev.size())
|
||||
|
|
|
|||
Loading…
Reference in a new issue