URI: 
       tfix #2430 - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 1b29945c6df7d2125885d9082ea52d1ed3e28c87
   DIR parent 265fd5ad3f7299d2c57f574e576734c97bbb2354
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sun, 21 May 2017 17:24:49 +0200
       
       fix #2430
       
       Diffstat:
         M gui/qt/main_window.py               |      13 ++++++-------
       
       1 file changed, 6 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -2221,15 +2221,14 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
            def plot_history_dialog(self):
                try:
                    from electrum.plot import plot_history
       -        except ImportError as e:
       +            wallet = self.wallet
       +            history = wallet.get_history()
       +            if len(history) > 0:
       +                plt = plot_history(self.wallet, history)
       +                plt.show()
       +        except BaseException as e:
                    self.show_error(str(e))
                    return
       -        wallet = self.wallet
       -        history = wallet.get_history()
       -        if len(history) > 0:
       -            plt = plot_history(self.wallet, history)
       -            plt.show()
       -
        
            def do_export_history(self, wallet, fileName, is_csv):
                history = wallet.get_history()