URI: 
       tdisable 'show on trezor' menu for multisig - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a2fa26eb464e5e11879d0753431245e03cc1d2d2
   DIR parent f7efedf8a0f8ed82cc9a97418501dcec2e10f7bf
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 26 Aug 2016 12:42:31 +0200
       
       disable 'show on trezor' menu for multisig
       
       Diffstat:
         M plugins/trezor/qt_generic.py        |      14 ++++++++------
       
       1 file changed, 8 insertions(+), 6 deletions(-)
       ---
   DIR diff --git a/plugins/trezor/qt_generic.py b/plugins/trezor/qt_generic.py
       t@@ -12,7 +12,7 @@ from ..hw_wallet.qt import QtHandlerBase
        from electrum.i18n import _
        from electrum.plugins import hook, DeviceMgr
        from electrum.util import PrintError, UserCancelled
       -from electrum.wallet import Wallet
       +from electrum.wallet import Wallet, Standard_Wallet
        
        PASSPHRASE_HELP_SHORT =_(
            "Passphrases allow you to access new wallets, each "
       t@@ -203,11 +203,13 @@ def qt_plugin_class(base_plugin_class):
        
            @hook
            def receive_menu(self, menu, addrs, wallet):
       -        for keystore in wallet.get_keystores():
       -            if type(keystore) == self.keystore_class and len(addrs) == 1:
       -                def show_address():
       -                    keystore.thread.add(partial(self.show_address, wallet, addrs[0]))
       -                menu.addAction(_("Show on %s") % self.device, show_address)
       +        if type(wallet) is not Standard_Wallet:
       +            return
       +        keystore = wallet.get_keystore()
       +        if type(keystore) == self.keystore_class and len(addrs) == 1:
       +            def show_address():
       +                keystore.thread.add(partial(self.show_address, wallet, addrs[0]))
       +            menu.addAction(_("Show on %s") % self.device, show_address)
        
            def settings_dialog(self, window, keystore):
                device_id = self.choose_device(window, keystore)