Fix crash in theme editor.

This commit is contained in:
John Preston 2020-05-01 16:27:55 +04:00
parent 4ae760dd7e
commit 19bcc145ad
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ void EditorBlock::removeRow(const QString &name, bool removeCopyReferences) {
row.setCopyOf(QString());
}
}
removeFromSearch(_data[index]);
_data.erase(_data.begin() + index);
_indices.erase(it);
for (auto i = index, count = static_cast<int>(_data.size()); i != count; ++i) {