Skip to content

Commit

Permalink
Adds a functional test for Export dialog
Browse files Browse the repository at this point in the history
This also modifies the export dialog excutation flow, by
using .show() method, thus avoiding an internal eventloop
from the previously used .exec_()
  • Loading branch information
kushaldas authored and sssoleileraaa committed Mar 23, 2020
1 parent a70e27e commit f9a65df
Show file tree
Hide file tree
Showing 3 changed files with 1,825 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2273,8 +2273,8 @@ def _on_export_clicked(self):
if not self.controller.downloaded_file_exists(self.file):
return

dialog = ExportDialog(self.controller, self.uuid, self.file.filename)
dialog.exec()
self.export_dialog = ExportDialog(self.controller, self.uuid, self.file.filename)
self.export_dialog.show()

@pyqtSlot()
def _on_print_clicked(self):
Expand Down
Loading

0 comments on commit f9a65df

Please sign in to comment.