URI: 
       tmore robust winpos-qt - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a378922c058784007ce7b627df9f72b0bba4c341
   DIR parent bb20d618dff6477969539f702420f456b821634d
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu, 22 Jan 2015 16:29:33 +0100
       
       more robust winpos-qt
       
       Diffstat:
         M gui/qt/main_window.py               |       7 +++++--
       
       1 file changed, 5 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -144,8 +144,11 @@ class ElectrumWindow(QMainWindow):
                tabs.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
                self.setCentralWidget(tabs)
        
       -        g = self.config.get("winpos-qt",[100, 100, 840, 400])
       -        self.setGeometry(g[0], g[1], g[2], g[3])
       +        try:
       +            self.setGeometry(*self.config.get("winpos-qt"))
       +        except:
       +            self.setGeometry(100, 100, 840, 400)
       +
                if self.config.get("is_maximized"):
                    self.showMaximized()