URI: 
       tbugfix: reset path after switching to new theme selection. - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 2d1bd9d2034eac3ddea13e918ab5fbbe2dd560ed
   DIR parent 8a2ac127e7d0c52891966b95a38eb55fc96f4b13
  HTML Author: Amir Taaki <genjix@riseup.net>
       Date:   Sat, 18 Aug 2012 08:32:15 +0100
       
       bugfix: reset path after switching to new theme selection.
       
       Diffstat:
         M lib/gui_lite.py                     |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py
       t@@ -231,10 +231,12 @@ class MiniWindow(QDialog):
                self.show()
        
            def toggle_theme(self, theme_name):
       +        old_path = QDir.currentPath()
                self.actuator.change_theme(theme_name)
                # Recompute style globally
                qApp.style().unpolish(self)
                qApp.style().polish(self)
       +        QDir.setCurrent(old_path)
        
            def closeEvent(self, event):
                super(MiniWindow, self).closeEvent(event)
       t@@ -491,9 +493,8 @@ class MiniActuator:
                except KeyError:
                    util.print_error("Theme not found! ", self.theme_name)
                    return
       -        theme_css = os.path.join(theme_path, "style.css")
       -        QDir.setCurrent(theme_prefix)
       -        with open(rsrc(theme_css)) as style_file:
       +        QDir.setCurrent(os.path.join(theme_prefix, theme_path))
       +        with open(rsrc("style.css")) as style_file:
                    qApp.setStyleSheet(style_file.read())
        
            def theme_names(self):