Write out the config file to <= 4.7 QT when QT > 4.7 can't be loaded.

This commit is contained in:
Maran 2012-08-30 00:11:50 +02:00
parent 3252b5ae4e
commit 0d229383aa
1 changed files with 4 additions and 1 deletions

View File

@ -150,6 +150,7 @@ if __name__ == '__main__':
except ImportError:
import electrum.gui_qt as gui
elif options.gui == 'lite':
print 'ohhai'
# Let's do some dep checking and handle missing ones gracefully
try:
from PyQt4.QtCore import *
@ -166,8 +167,10 @@ if __name__ == '__main__':
error_message = QErrorMessage()
error_message.setFixedSize(350,200)
error_message.showMessage("<p>Sorry, the Electrum 'Lite GUI' requires Qt >= 4.7 to run. The pro GUI will be started instead.</p><p>Check your distributions packages for upgrades.</p>")
simple_config.config["gui"] = "qt"
simple_config.save_config
simple_config.save_config()
app.exec_()
try: