Fixes the remove button '''crash''' #1226

This commit is contained in:
apa420 2019-08-22 16:07:54 +00:00 committed by fourtf
parent dd33e4e09e
commit 0c6760d0ca

View file

@ -16,7 +16,7 @@ AccountController::AccountController()
this->twitch.accounts.itemRemoved.connect([this](const auto &args) { this->twitch.accounts.itemRemoved.connect([this](const auto &args) {
if (args.caller != this) if (args.caller != this)
{ {
auto &accs = this->twitch.accounts; auto &accs = this->twitch.accounts.getVector();
auto it = std::find(accs.begin(), accs.end(), args.item); auto it = std::find(accs.begin(), accs.end(), args.item);
assert(it != accs.end()); assert(it != accs.end());