From 747751239848700c4599ef3975ce3ce4e707c16b Mon Sep 17 00:00:00 2001
From: kienle <kienle@passcal.nmt.edu>
Date: Mon, 11 Sep 2023 15:11:21 -0600
Subject: [PATCH] Disable read options checkbox when needed

---
 sohstationviewer/view/main_window.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sohstationviewer/view/main_window.py b/sohstationviewer/view/main_window.py
index 256cfe72b..9a2c81915 100755
--- a/sohstationviewer/view/main_window.py
+++ b/sohstationviewer/view/main_window.py
@@ -296,6 +296,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
         self.set_open_files_list_texts()
         # self.search_button.setEnabled(not is_from_data_card_checked)
 
+        self.log_checkbox.setEnabled(not is_from_data_card_checked)
         self.search_line_edit.setEnabled(not is_from_data_card_checked)
         # QLineEdit does not change its color when it is disabled unless
         # there is text inside, so we have to do it manually.
@@ -316,6 +317,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
         self.open_files_list.clear()
         self.set_open_files_list_texts()
 
+        self.from_data_card_check_box.setEnabled(not is_checked)
         self.search_line_edit.setEnabled(not is_checked)
         # QLineEdit does not change its color when it is disabled unless
         # there is text inside, so we have to do it manually.
-- 
GitLab