mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix #1691980 [Remove image button](https://bugs.launchpad.net/calibre/+bug/1691980)
This commit is contained in:
parent
4936c3de21
commit
52be1dfc74
@ -409,9 +409,10 @@ class RuleEditor(QDialog): # {{{
|
|||||||
bb.rejected.connect(self.reject)
|
bb.rejected.connect(self.reject)
|
||||||
l.addWidget(bb, 7, 0, 1, 8)
|
l.addWidget(bb, 7, 0, 1, 8)
|
||||||
if self.rule_kind != 'color':
|
if self.rule_kind != 'color':
|
||||||
self.remove_button = b = bb.addButton(_('Remove image'), bb.ActionRole)
|
self.remove_button = b = bb.addButton(_('&Remove icon'), bb.ActionRole)
|
||||||
b.setIcon(QIcon(I('minus.png')))
|
b.setIcon(QIcon(I('minus.png')))
|
||||||
b.setMenu(QMenu())
|
b.setMenu(QMenu())
|
||||||
|
b.setToolTip('<p>' + _('Remove a previously added icon. Note that doing so will cause rules that use it to stop working.'))
|
||||||
self.update_remove_button()
|
self.update_remove_button()
|
||||||
|
|
||||||
self.conditions_widget = QWidget(self)
|
self.conditions_widget = QWidget(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user