Skip to content

Commit

Permalink
Merge pull request #637 from gem/less-clicks
Browse files Browse the repository at this point in the history
Load outputs as tables from csv with a single click
  • Loading branch information
ptormene authored Sep 3, 2019
2 parents 61f59cd + e2355e1 commit 2129042
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion svir/dialogs/load_basic_csv_as_layer_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ def __init__(self, iface, viewer_dock, session, hostname, calc_id,
self.file_browser_tbn.setEnabled(True)
if self.path:
self.path_le.setText(self.path)
self.show()
# TODO: add a warning in case the file size exceeds a threshold
# self.show()
if self.ok_button.isEnabled():
self.accept()
else:
self.show()

def set_ok_button(self):
self.ok_button.setEnabled(bool(self.path))
Expand Down
1 change: 1 addition & 0 deletions svir/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ [email protected]
changelog=
3.7.2
* The management of profiles for the connection to the OpenQuake Platform was fixed.
* OQ-Engine outputs to be loaded as tables from csv are loaded directly with a single click, instead of prior displaying a dialog showing the file size.
3.7.1
* Instead of the 'sourcegroups' output (that was removed from the OQ-Engine), the plugin can now load the new output 'events'
* The user can choose if selecting the '.ini' file to run a OQ-Engine calculation, or letting the OQ-Engine automatically pick one from the list of input files.
Expand Down

0 comments on commit 2129042

Please sign in to comment.