MemoryScanner: Fix default operator value

This commit is contained in:
Stenzek 2024-10-19 22:50:56 +10:00
parent c279376cff
commit 163cb2f653
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,7 @@ private:
u32 m_value = 0; u32 m_value = 0;
MemoryAccessSize m_size = MemoryAccessSize::HalfWord; MemoryAccessSize m_size = MemoryAccessSize::HalfWord;
Operator m_operator = Operator::Equal; Operator m_operator = Operator::Any;
PhysicalMemoryAddress m_start_address = 0; PhysicalMemoryAddress m_start_address = 0;
PhysicalMemoryAddress m_end_address = 0x200000; PhysicalMemoryAddress m_end_address = 0x200000;
ResultVector m_results; ResultVector m_results;

View File

@ -106,6 +106,8 @@ void MemoryScannerWindow::connectUi()
{ {
m_ui.scanStartAddress->setText(formatHexValue(m_scanner.GetStartAddress(), 8)); m_ui.scanStartAddress->setText(formatHexValue(m_scanner.GetStartAddress(), 8));
m_ui.scanEndAddress->setText(formatHexValue(m_scanner.GetEndAddress(), 8)); m_ui.scanEndAddress->setText(formatHexValue(m_scanner.GetEndAddress(), 8));
m_ui.scanOperator->setCurrentIndex(static_cast<int>(m_scanner.GetOperator()));
m_ui.scanSize->setCurrentIndex(static_cast<int>(m_scanner.GetSize()));
connect(m_ui.scanValue, &QLineEdit::textChanged, this, &MemoryScannerWindow::updateScanValue); connect(m_ui.scanValue, &QLineEdit::textChanged, this, &MemoryScannerWindow::updateScanValue);
connect(m_ui.scanValueBase, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_ui.scanValueBase, QOverload<int>::of(&QComboBox::currentIndexChanged),