From 74e96200dc3c1fb86d4750e301fd7565906d7084 Mon Sep 17 00:00:00 2001 From: kienle <kienle@passcal.nmt.edu> Date: Tue, 7 Jan 2025 11:32:51 -0700 Subject: [PATCH] Disable read all checkbox for seismic channels --- sohstationviewer/view/db_config/channel_dialog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sohstationviewer/view/db_config/channel_dialog.py b/sohstationviewer/view/db_config/channel_dialog.py index 414d4d53..6a4f7734 100755 --- a/sohstationviewer/view/db_config/channel_dialog.py +++ b/sohstationviewer/view/db_config/channel_dialog.py @@ -89,6 +89,8 @@ class ChannelDialog(UiDBInfoDialog): :param col_idx: the column to insert the checkbox into :return the created checkbox widget """ + row_channel = (self.database_rows[row_idx][0] + if row_idx < len(self.database_rows) else '') checked = (self.database_rows[row_idx][col_idx - 1] if row_idx < len(self.database_rows) else False) checkbox = CenteredCheckBox(self.data_table_widget) @@ -100,6 +102,8 @@ class ChannelDialog(UiDBInfoDialog): ) if self.data_type == 'RT130': checkbox.setDisabled(True) + if row_channel == 'SEISMIC': + checkbox.setDisabled(True) self.data_table_widget.setCellWidget(row_idx, col_idx, checkbox) return checkbox -- GitLab