Skip to content

Commit

Permalink
Prevent using "Search" before "New" in RAM search (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgallet committed Oct 23, 2022
1 parent 799ae8a commit f5531cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Protect for spaces when searching game libraries (#496)
* Store thread state in savestates, and check for state match when loading (#503)
* Fix hitting "New" in RAM search not doing anything the first time
* Prevent using "Search" before "New" in RAM search (#504)

## [1.4.3] - 2022-03-27
### Added
Expand Down
3 changes: 3 additions & 0 deletions src/program/ui/RamSearchWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ RamSearchWindow::RamSearchWindow(Context* c, QWidget *parent) : QDialog(parent),

searchButton = new QPushButton(tr("Search"));
connect(searchButton, &QAbstractButton::clicked, this, &RamSearchWindow::slotSearch);
searchButton->setDisabled(true);

QPushButton *addButton = new QPushButton(tr("Add Watch"));
connect(addButton, &QAbstractButton::clicked, this, &RamSearchWindow::slotAdd);
Expand Down Expand Up @@ -232,6 +233,7 @@ void RamSearchWindow::slotNew()
formatGroupBox->setDisabled(false);
ramSearchModel->clear();
watchCount->setText("");
searchButton->setDisabled(true);
return;
}

Expand Down Expand Up @@ -322,6 +324,7 @@ void RamSearchWindow::slotSearch()
newButton->setText(tr("New"));
memGroupBox->setDisabled(false);
formatGroupBox->setDisabled(false);
searchButton->setDisabled(true);
}

newButton->setDisabled(false);
Expand Down

0 comments on commit f5531cf

Please sign in to comment.