This commit is contained in:
Kovid Goyal 2017-05-20 11:56:27 +05:30
parent 4936c3de21
commit 52be1dfc74
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -409,9 +409,10 @@ class RuleEditor(QDialog): # {{{
bb.rejected.connect(self.reject)
l.addWidget(bb, 7, 0, 1, 8)
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.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.conditions_widget = QWidget(self)