forked from openlp/openlp
[fix] Don't exit OpenLP when you cancel the FRW from the Tools menu
This commit is contained in:
parent
dec7390ef5
commit
4f4c76ae8b
@ -122,6 +122,9 @@ class OpenLP(OpenLPMixin, QtGui.QApplication):
|
||||
ftw.initialize(screens)
|
||||
if ftw.exec_() == QtGui.QDialog.Accepted:
|
||||
Settings().setValue('core/has run wizard', True)
|
||||
elif ftw.was_download_cancelled:
|
||||
QtCore.QCoreApplication.exit()
|
||||
sys.exit()
|
||||
# Correct stylesheet bugs
|
||||
application_stylesheet = ''
|
||||
if not Settings().value('advanced/alternate rows'):
|
||||
|
@ -292,9 +292,6 @@ class FirstTimeForm(QtGui.QWizard, UiFirstTimeWizard, RegistryProperties):
|
||||
Process the triggering of the cancel button.
|
||||
"""
|
||||
self.was_download_cancelled = True
|
||||
if not self.has_run_wizard:
|
||||
QtCore.QCoreApplication.exit()
|
||||
sys.exit()
|
||||
if self.theme_screenshot_workers:
|
||||
for worker in self.theme_screenshot_workers:
|
||||
worker.set_download_canceled(True)
|
||||
|
Loading…
Reference in New Issue
Block a user