| 633 | } |
| 634 | |
| 635 | void MemorySearchView::onSearchTypeChanged(int newIndex) |
| 636 | { |
| 637 | if (newIndex < 4) |
| 638 | m_ui.chkSearchHex->setEnabled(true); |
| 639 | else |
| 640 | m_ui.chkSearchHex->setEnabled(false); |
| 641 | |
| 642 | // Clear existing search results when the comparison type changes |
| 643 | if (m_searchResults.size() > 0 && (int)(m_searchResults.front().getType()) != newIndex) |
| 644 | { |
| 645 | m_searchResults.clear(); |
| 646 | m_ui.btnSearch->setDisabled(false); |
| 647 | m_ui.btnFilterSearch->setDisabled(true); |
| 648 | } |
| 649 | updateSearchComparisonSelections(); |
| 650 | } |
| 651 | |
| 652 | void MemorySearchView::onSearchComparisonChanged(int newValue) |
| 653 | { |