forked from openlp/openlp
Fix log-traceback when trying to remove servicemanager files before eg. powerpoint has closed the files.
This commit is contained in:
parent
e3be044d5d
commit
60d45d8b8b
@ -1106,8 +1106,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow, RegistryProperties):
|
|||||||
self.image_manager.stop_manager = True
|
self.image_manager.stop_manager = True
|
||||||
while self.image_manager.image_thread.isRunning():
|
while self.image_manager.image_thread.isRunning():
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
# Clean temporary files used by services
|
|
||||||
self.service_manager_contents.clean_up()
|
|
||||||
if save_settings:
|
if save_settings:
|
||||||
if Settings().value('advanced/save current plugin'):
|
if Settings().value('advanced/save current plugin'):
|
||||||
Settings().setValue('advanced/current media plugin', self.media_tool_box.currentIndex())
|
Settings().setValue('advanced/current media plugin', self.media_tool_box.currentIndex())
|
||||||
@ -1124,6 +1122,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow, RegistryProperties):
|
|||||||
if self.live_controller.display:
|
if self.live_controller.display:
|
||||||
self.live_controller.display.close()
|
self.live_controller.display.close()
|
||||||
self.live_controller.display = None
|
self.live_controller.display = None
|
||||||
|
# Clean temporary files used by services
|
||||||
|
self.service_manager_contents.clean_up()
|
||||||
if is_win():
|
if is_win():
|
||||||
# Needed for Windows to stop crashes on exit
|
# Needed for Windows to stop crashes on exit
|
||||||
Registry().remove('application')
|
Registry().remove('application')
|
||||||
|
Loading…
Reference in New Issue
Block a user