Skip to content

Commit

Permalink
Merge pull request #1610 from astrofrog/fix-table-close-2
Browse files Browse the repository at this point in the history
Fix RowSelectTool.deactivate if viewer has already been closed
  • Loading branch information
astrofrog authored Mar 20, 2018
2 parents 6857870 + ee271e8 commit 576a2da
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 576a2da

Please sign in to comment.