Skip to content

Commit

Permalink
Fix RowSelectTool.deactivate if viewer has already been closed
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Mar 19, 2018
1 parent 6857870 commit ee271e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ v0.13.0 (unreleased)
v0.12.6 (unreleased)
--------------------

* Fixed a non-deterministic error that happened when closing the
TableViewer. [#7310]

* Fixed size of markers when value for size is out of vmin/vmax range. [#1609]

* Fixed a bug which caused the y-axis in the PV slice viewer to be
Expand Down
3 changes: 3 additions & 0 deletions glue/viewers/table/qt/data_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def activate(self):
self.viewer.ui.table.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)

def deactivate(self):
# Don't do anything if the viewer has already been closed
if self.viewer is None:
return
self.viewer.ui.table.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
self.viewer.ui.table.clearSelection()

Expand Down

0 comments on commit ee271e8

Please sign in to comment.