| 76 | |
| 77 | |
| 78 | void AccountMaintenanceDialog::loadData() { |
| 79 | names.clear(); |
| 80 | ids.clear(); |
| 81 | nameList->clear(); |
| 82 | deleteButton->setEnabled(false); |
| 83 | |
| 84 | names = global.accountsManager->nameList(); |
| 85 | ids = global.accountsManager->idList(); |
| 86 | for (int i=0; i<names.size(); i++) |
| 87 | nameList->addItem(names[i]); |
| 88 | |
| 89 | if (ids.size() >= 2) { |
| 90 | deleteButton->setEnabled(true); |
| 91 | } |
| 92 | |
| 93 | nameList->sortItems(); |
| 94 | if (ids.size() >= 1) { |
| 95 | nameList->item(0)->setSelected(true); |
| 96 | } |
| 97 | |
| 98 | } |
| 99 | |
| 100 | |
| 101 | void AccountMaintenanceDialog::deleteAccount() { |
no test coverage detected