From f540adaf2ab5623380ea0c8c3686a1d4ba98db95 Mon Sep 17 00:00:00 2001 From: Maran Date: Sat, 18 Aug 2012 10:20:35 +0200 Subject: [PATCH] Load qt gui when qt 4.7 is not available --- electrum | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/electrum b/electrum index 967b5dcec..cb615be9f 100755 --- a/electrum +++ b/electrum @@ -157,13 +157,17 @@ if __name__ == '__main__': error_message = QErrorMessage() error_message.setFixedSize(350,200) - error_message.showMessage("

Sorry, Electrum requires Qt >= 4.7 to run.

Check your distributions packages or download it at http://qt.nokia.com/downloads

") + error_message.showMessage("

Sorry, the Electrum 'Lite GUI' requires Qt >= 4.7 to run. The pro GUI will be started instead.

Check your distributions packages for upgrades.

") app.exec_() - sys.exit(0) - try: + try: + import lib.gui_qt as gui + except ImportError: + import electrum.gui_qt as gui + else: + try: import lib.gui_lite as gui - except ImportError: + except ImportError: import electrum.gui_lite as gui else: print_error("Error: Unknown GUI: " + options.gui)