diff --git a/sohstationviewer/view/main_window.py b/sohstationviewer/view/main_window.py index 9a2c81915a54fd12b1def399a82db0af03c10073..34bbeaaecd07f1992713aac46a570b25b27990e7 100755 --- a/sohstationviewer/view/main_window.py +++ b/sohstationviewer/view/main_window.py @@ -318,20 +318,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): 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. - palette = self.search_line_edit.palette() - if is_checked: - # We are copying the color of a disabled button - search_line_edit_color = QColor(246, 246, 246) - else: - search_line_edit_color = QColor(255, 255, 255) - palette.setColor(QPalette.Base, search_line_edit_color) - self.search_line_edit.setPalette(palette) - - if not is_checked and self.search_line_edit.text(): - self.filter_folder_list(self.search_line_edit.text()) + self.filter_folder_list(self.search_line_edit.text()) @QtCore.Slot() def all_wf_chans_clicked(self):