| 99 | } |
| 100 | |
| 101 | void ProfileSelectDialog::on_buttonBox_accepted() |
| 102 | { |
| 103 | QModelIndexList selection = ui->listView->selectionModel()->selectedIndexes(); |
| 104 | if (selection.size() > 0) |
| 105 | { |
| 106 | QModelIndex selected = selection.first(); |
| 107 | m_selected = selected.data(AccountList::PointerRole).value<MinecraftAccountPtr>(); |
| 108 | } |
| 109 | close(); |
| 110 | } |
| 111 | |
| 112 | void ProfileSelectDialog::on_buttonBox_rejected() |
| 113 | { |