commit d6986347e6b0dc7733884c7a4ecbc45a4d239c41
parent a5ddb42bfdc515aed8fd70b995b196a411aca9b2
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 5 Feb 2019 00:59:09 +0100
qt icons: update remaining QIcon() constructors
follow-up #5053
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py
@@ -140,7 +140,7 @@ class TxDialog(QDialog, MessageBoxMixin):
b.setDefault(True)
self.qr_button = b = QPushButton()
- b.setIcon(QIcon(qr_icon))
+ b.setIcon(read_QIcon(qr_icon))
b.clicked.connect(self.show_qr)
self.copy_button = CopyButton(lambda: str(self.tx), parent.app)
diff --git a/electrum/plugins/hw_wallet/qt.py b/electrum/plugins/hw_wallet/qt.py
@@ -200,7 +200,7 @@ class QtPluginBase(object):
return
tooltip = self.device + '\n' + (keystore.label or 'unnamed')
cb = partial(self.show_settings_dialog, window, keystore)
- button = StatusBarButton(QIcon(self.icon_unpaired), tooltip, cb)
+ button = StatusBarButton(read_QIcon(self.icon_unpaired), tooltip, cb)
button.icon_paired = self.icon_paired
button.icon_unpaired = self.icon_unpaired
window.statusBar().addPermanentWidget(button)