Implement removing accounts.

This commit is contained in:
Andrew
2013-11-22 10:54:52 -06:00
parent 69ac3e5a86
commit 23bc195b3c
3 changed files with 21 additions and 1 deletions

View File

@ -73,6 +73,14 @@ void MojangAccountList::removeAccount(const QString& username)
onListChanged();
}
void MojangAccountList::removeAccount(QModelIndex index)
{
beginResetModel();
m_accounts.removeAt(index.row());
endResetModel();
onListChanged();
}
void MojangAccountList::onListChanged()
{