Reworked the qt warning dialog

This commit is contained in:
Maran 2012-08-30 19:57:32 +02:00
parent 6da25727f8
commit a31733d065
1 changed files with 1 additions and 6 deletions

View File

@ -162,15 +162,10 @@ if __name__ == '__main__':
qtVersion = qVersion()
if not(int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7):
app = QApplication(sys.argv)
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>")
QMessageBox.warning(None,"Could not start Lite GUI.", "Electrum was unable to load the 'Lite GUI' because it needs Qt version >= 4.7.\nElectrum is now setup to load the Pro GUI.")
simple_config.set_key("gui", "qt")
app.exec_()
try:
import lib.gui_qt as gui
except ImportError: