diff --git a/sohstationviewer/view/db_config/channel_dialog.py b/sohstationviewer/view/db_config/channel_dialog.py index 414d4d53cc98aba04db6bc1fe368ef11a380fcde..6a4f77344e57201dde3785c995a091ddd012d185 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