mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 04:35:38 +01:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1907856 [Edit Metadata: Typing in number fails to replace undefined integers](https://bugs.launchpad.net/calibre/+bug/1907856)
This commit is contained in:
commit
c7c627f285
2 changed files with 3 additions and 1 deletions
|
|
@ -145,6 +145,8 @@ def keyPressEvent(self, ev):
|
|||
if ev.key() == Qt.Key.Key_Space:
|
||||
self.clear_to_undefined()
|
||||
else:
|
||||
if self.value() == self.minimum():
|
||||
self.clear()
|
||||
return spinbox.keyPressEvent(self, ev)
|
||||
return SpinBox
|
||||
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ def __call__(self, id_, fmts, cache_index, db, icon_cache, icon_bitmap_cache,
|
|||
template_cache=template_cache)
|
||||
if not rule_icons:
|
||||
continue
|
||||
icon_list = [ic.strip() for ic in rule_icons.split(':')]
|
||||
icon_list = [ic.strip() for ic in rule_icons.split(':') if ic.strip()]
|
||||
icons.extend(icon_list)
|
||||
if icon_list and not kind.endswith('_composed'):
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue