mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1388624 [window buttons missing in GNOME 3](https://bugs.launchpad.net/calibre/+bug/1388624)
This commit is contained in:
parent
821c414877
commit
44eae0780a
@ -193,6 +193,7 @@ class Diff(Dialog):
|
||||
self.show_open_in_editor = show_open_in_editor
|
||||
self.revert_button_msg = revert_button_msg
|
||||
Dialog.__init__(self, _('Differences between books'), 'diff-dialog', parent=parent)
|
||||
self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
|
||||
if show_as_window:
|
||||
self.setWindowFlags(Qt.Window)
|
||||
self.view.line_activated.connect(self.line_activated)
|
||||
|
@ -6,7 +6,7 @@ from __future__ import (unicode_literals, division, absolute_import,
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
from PyQt5.Qt import QDialog, QDialogButtonBox, QVBoxLayout, QIcon
|
||||
from PyQt5.Qt import QDialog, QDialogButtonBox, QVBoxLayout, QIcon, Qt
|
||||
from PyQt5.QtWebKitWidgets import QWebInspector
|
||||
|
||||
from calibre.gui2 import gprefs
|
||||
@ -15,6 +15,7 @@ class WebInspector(QDialog):
|
||||
|
||||
def __init__(self, parent, page):
|
||||
QDialog.__init__(self, parent)
|
||||
self.setWindowFlags(self.windowFlags() | Qt.WindowMinMaxButtonsHint)
|
||||
self.setWindowTitle(_('Inspect book code'))
|
||||
self.setWindowIcon(QIcon(I('debug.png')))
|
||||
l = QVBoxLayout()
|
||||
|
Loading…
x
Reference in New Issue
Block a user