| 447 | } |
| 448 | |
| 449 | void RamSearchWindow::slotAdd() |
| 450 | { |
| 451 | const QModelIndex index = ramSearchView->selectionModel()->currentIndex(); |
| 452 | ramSearchView->selectionModel()->clear(); |
| 453 | |
| 454 | /* If no watch was selected, return */ |
| 455 | if (!index.isValid()) { |
| 456 | QMessageBox::critical(nullptr, "Error", QString("You must select an address to add a watch")); |
| 457 | return; |
| 458 | } |
| 459 | |
| 460 | int row = index.row(); |
| 461 | |
| 462 | /* Fill the watch edit window with parameters from the selected watch */ |
| 463 | ramWatchWindow->ramWatchView->ensureEditWindow()->fill(ramSearchModel->address(row), typeBox->currentIndex()); |
| 464 | ramWatchWindow->ramWatchView->slotAdd(); |
| 465 | } |
| 466 | |
| 467 | void RamSearchWindow::slotHex() |
| 468 | { |
nothing calls this directly
no test coverage detected