mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
27a3a14d6e
commit
86434c9ab7
@ -45,7 +45,7 @@ class MetadataSingleDialogBase(ResizableDialog):
|
|||||||
ResizableDialog.__init__(self, parent)
|
ResizableDialog.__init__(self, parent)
|
||||||
|
|
||||||
def setupUi(self, *args): # {{{
|
def setupUi(self, *args): # {{{
|
||||||
self.resize(990, 650)
|
self.resize(990, 670)
|
||||||
|
|
||||||
self.download_shortcut = QShortcut(self)
|
self.download_shortcut = QShortcut(self)
|
||||||
self.download_shortcut.setKey(QKeySequence('Ctrl+D',
|
self.download_shortcut.setKey(QKeySequence('Ctrl+D',
|
||||||
@ -82,7 +82,6 @@ class MetadataSingleDialogBase(ResizableDialog):
|
|||||||
|
|
||||||
self.l = QVBoxLayout(self)
|
self.l = QVBoxLayout(self)
|
||||||
self.setLayout(self.l)
|
self.setLayout(self.l)
|
||||||
self.l.setMargin(0)
|
|
||||||
self.l.addWidget(self.scroll_area)
|
self.l.addWidget(self.scroll_area)
|
||||||
ll = self.button_box_layout = QHBoxLayout()
|
ll = self.button_box_layout = QHBoxLayout()
|
||||||
self.l.addLayout(ll)
|
self.l.addLayout(ll)
|
||||||
@ -623,7 +622,6 @@ class MetadataSingleDialog(MetadataSingleDialogBase): # {{{
|
|||||||
self.tabs[0].middle = w = QWidget(self)
|
self.tabs[0].middle = w = QWidget(self)
|
||||||
w.l = l = QGridLayout()
|
w.l = l = QGridLayout()
|
||||||
w.setLayout(w.l)
|
w.setLayout(w.l)
|
||||||
l.setMargin(0)
|
|
||||||
self.splitter.addWidget(w)
|
self.splitter.addWidget(w)
|
||||||
def create_row2(row, widget, button=None, front_button=None):
|
def create_row2(row, widget, button=None, front_button=None):
|
||||||
row += 1
|
row += 1
|
||||||
|
@ -69,7 +69,11 @@ class TOCItem(QStandardItem):
|
|||||||
if si == self.abspath:
|
if si == self.abspath:
|
||||||
spos = i
|
spos = i
|
||||||
break
|
break
|
||||||
|
try:
|
||||||
am = getattr(spine[i], 'anchor_map', {})
|
am = getattr(spine[i], 'anchor_map', {})
|
||||||
|
except UnboundLocalError:
|
||||||
|
# Spine was empty?
|
||||||
|
am = {}
|
||||||
frag = self.fragment if (self.fragment and self.fragment in am) else None
|
frag = self.fragment if (self.fragment and self.fragment in am) else None
|
||||||
self.starts_at = spos
|
self.starts_at = spos
|
||||||
self.start_anchor = frag
|
self.start_anchor = frag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user