Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Fix DataLogger multi plot widget closing unexpectedly.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktBurger committed Jul 4, 2024
1 parent 6bebb96 commit 6df0e4b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pyleco_extras/gui/data_logger/data/multi_plot_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,3 @@ def show_line_settings(self, checked: bool) -> None:
except Exception as exc:
self.log.exception("Adjusting the view for showing the data failed.", exc_info=exc)
return
try:
sm: QtCore.QItemSelectionModel = self.tvLines.selectionModel() # type: ignore
sm.select(self._last_index, sm.SelectionFlag.SelectCurrent)
except AttributeError:
pass # if no last index, do not select any.
except Exception as exc:
self.log.exception("Selecting previous data failed.", exc_info=exc)

0 comments on commit 6df0e4b

Please sign in to comment.