| 646 | } |
| 647 | |
| 648 | void MemoryDialog::focusTableOnCurrentRow() |
| 649 | { |
| 650 | if (!m_table) |
| 651 | return; |
| 652 | |
| 653 | if (m_table->currentRow() < 0 && m_table->rowCount() > 0) |
| 654 | m_table->setCurrentCell(0, 0, QItemSelectionModel::NoUpdate); |
| 655 | m_table->setFocus(Qt::OtherFocusReason); |
| 656 | } |
| 657 | |
| 658 | void MemoryDialog::populateTable() |
| 659 | { |