URI: 
       tdo not block load_wallet with watching_only warning - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit bd5c82404d18370cb9a1c770d61dd05d57f9dcf1
   DIR parent 5ae9365f7775fe6f235b6c2931abb1839c08c18a
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue,  4 Dec 2018 11:52:31 +0100
       
       do not block load_wallet with watching_only warning
       
       Diffstat:
         M electrum/gui/qt/__init__.py         |       2 +-
         M electrum/gui/qt/main_window.py      |       1 -
       
       2 files changed, 1 insertion(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py
       t@@ -191,13 +191,13 @@ class ElectrumGui(PrintError):
                                        self.network_updated_signal_obj)
                self.nd.show()
        
       -    @profiler
            def create_window_for_wallet(self, wallet):
                w = ElectrumWindow(self, wallet)
                self.windows.append(w)
                self.build_tray_menu()
                # FIXME: Remove in favour of the load_wallet hook
                run_hook('on_new_window', w)
       +        w.warn_if_watching_only()
                return w
        
            def count_wizards_in_progress(func):
   DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
       t@@ -413,7 +413,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                                                self.wallet.basename())
                extra = [self.wallet.storage.get('wallet_type', '?')]
                if self.wallet.is_watching_only():
       -            self.warn_if_watching_only()
                    extra.append(_('watching only'))
                title += '  [%s]'% ', '.join(extra)
                self.setWindowTitle(title)