MCPcopy Create free account
hub / github.com/MultiMC/Launcher / on_buttonBox_accepted

Method on_buttonBox_accepted

launcher/ui/dialogs/ProfileSelectDialog.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void 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
112void ProfileSelectDialog::on_buttonBox_rejected()
113{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
firstMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected