Fix #1901795 [[Enhancement] Close button in the Get books dialog has a different icon than the other dialog dialogs](https://bugs.launchpad.net/calibre/+bug/1901795)

This commit is contained in:
Kovid Goyal 2020-10-28 13:30:34 +05:30
parent b19dd8881e
commit 5a5c8a3f80
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 4 deletions

View File

@ -33,6 +33,8 @@ class SearchDialog(QDialog, Ui_Dialog):
def __init__(self, gui, parent=None, query=''):
QDialog.__init__(self, parent)
self.setupUi(self)
s = self.style()
self.close.setIcon(s.standardIcon(s.SP_DialogCloseButton))
self.config = JSONConfig('store/search')
self.search_title.initialize('store_search_search_title')

View File

@ -333,10 +333,6 @@
<property name="text">
<string>&amp;Close</string>
</property>
<property name="icon">
<iconset resource="../../../../../resources/images.qrc">
<normaloff>:/images/window-close.png</normaloff>:/images/window-close.png</iconset>
</property>
</widget>
</item>
</layout>