mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed crash when removing item in settings list
This commit is contained in:
parent
42700513fd
commit
1ec109748f
1 changed files with 1 additions and 2 deletions
|
@ -71,8 +71,7 @@ public:
|
||||||
assert(row >= 0 && row <= this->rows_.size());
|
assert(row >= 0 && row <= this->rows_.size());
|
||||||
|
|
||||||
// remove row
|
// remove row
|
||||||
std::vector<QStandardItem *> items =
|
std::vector<QStandardItem *> items = this->rows_[row].items;
|
||||||
std::move(this->rows_[row].items);
|
|
||||||
|
|
||||||
this->beginRemoveRows(QModelIndex(), row, row);
|
this->beginRemoveRows(QModelIndex(), row, row);
|
||||||
this->rows_.erase(this->rows_.begin() + row);
|
this->rows_.erase(this->rows_.begin() + row);
|
||||||
|
|
Loading…
Reference in a new issue