From a4bd979f19a9c9e8d82d6b9f978f67c2aed35417 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 22 Sep 2017 21:10:18 -0700 Subject: [PATCH] Hide the cancel button --- openlp/core/ui/mainwindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 4424944cf..508b6a34c 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -1017,11 +1017,13 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties): wait_dialog = QtWidgets.QProgressDialog('Waiting for some things to finish...', '', 0, 0, self) wait_dialog.setWindowModality(QtCore.Qt.WindowModal) wait_dialog.setAutoClose(False) + wait_dialog.setCancelButton(None) wait_dialog.show() retry = 0 - while self.version_thread.isRunning() and retry < 10: + while self.version_thread.isRunning() and retry < 50: self.application.processEvents() - self.version_thread.wait(500) + self.version_thread.wait(100) + retry += 1 if self.version_thread.isRunning(): self.version_thread.terminate() wait_dialog.close()