diff --git a/securedrop_client/gui/widgets.py b/securedrop_client/gui/widgets.py index 147018bf60..aeebca1c72 100644 --- a/securedrop_client/gui/widgets.py +++ b/securedrop_client/gui/widgets.py @@ -1875,14 +1875,7 @@ def _on_export_clicked(self): return dialog = ExportDialog(self.controller, self.file.uuid) - # The underlying function of the `export` method makes a blocking call that can potentially - # take a long time to run (if the Export VM is not already running and needs to start, this - # can take 15 or more seconds). Calling `QApplication.processEvents` ensures that the `show` - # event is processed before the blocking call so that the user can see the dialog with a - # message to wait before the blocking call. We also call `exec` afterwards in order to give - # control to the dialog for the rest of the export process. dialog.show() - QApplication.processEvents() dialog.export() dialog.exec() @@ -1896,14 +1889,7 @@ def _on_print_clicked(self): return dialog = PrintDialog(self.controller, self.file.uuid) - # The underlying function of the `export` method makes a blocking call that can potentially - # take a long time to run (if the Export VM is not already running and needs to start, this - # can take 15 or more seconds). Calling `QApplication.processEvents` ensures that the `show` - # event is processed before the blocking call so that the user can see the dialog with a - # message to wait before the blocking call. We also call `exec` afterwards in order to give - # control to the dialog for the rest of the export process. dialog.show() - QApplication.processEvents() dialog.print() dialog.exec()