URI: 
       tdisplay unicode wallet path in Qt GUI - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 6318bda54d55c381d40057a76cdac843ac918936
   DIR parent d1ca4f994ffc6f877bdc8c7efc79c2342a2e25b9
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu,  9 Mar 2017 12:16:07 +0100
       
       display unicode wallet path in Qt GUI
       
       Diffstat:
         M gui/qt/main_window.py               |       9 ++++++---
       
       1 file changed, 6 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -338,9 +338,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                    self.print_error("using default geometry")
                    self.setGeometry(100, 100, 840, 400)
        
       +    def wallet_name(self):
       +        return self.wallet.basename().decode('utf8')
       +
            def watching_only_changed(self):
       -        title = 'Electrum %s  -  %s' % (self.wallet.electrum_version,
       -                                        self.wallet.basename())
       +        title = 'Electrum %s  -  %s' % (self.wallet.electrum_version, self.wallet_name())
                extra = [self.wallet.storage.get('wallet_type', '?')]
                if self.wallet.is_watching_only():
                    self.warn_if_watching_only()
       t@@ -385,6 +387,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                        self.show_critical(_("Electrum was unable to copy your wallet file to the specified location.") + "\n" + str(reason), title=_("Unable to create backup"))
        
            def update_recently_visited(self, filename):
       +        filename = filename.decode('utf8')
                recent = self.config.get('recently_open', [])
                if filename in recent:
                    recent.remove(filename)
       t@@ -675,7 +678,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                    text = _("Not connected")
                    icon = QIcon(":icons/status_disconnected.png")
        
       -        self.tray.setToolTip("%s (%s)" % (text, self.wallet.basename()))
       +        self.tray.setToolTip("%s (%s)" % (text, self.wallet_name()))
                self.balance_label.setText(text)
                self.status_button.setIcon( icon )