mirror of https://github.com/procxx/kepka.git
Fixed crash in Theme Editor.
There was an attempt to access _searchResults with index from _data.
This commit is contained in:
parent
27a4d0f029
commit
b84abbec08
|
@ -729,8 +729,8 @@ void EditorBlock::addRowRipple(int index) {
|
|||
auto ripple = row.ripple();
|
||||
if (!ripple) {
|
||||
auto mask = Ui::RippleAnimation::rectMask(QSize(width(), row.height()));
|
||||
ripple = row.setRipple(std_::make_unique<Ui::RippleAnimation>(st::defaultRippleAnimation, std_::move(mask), [this, index] {
|
||||
updateRow(rowAtIndex(index));
|
||||
ripple = row.setRipple(std_::make_unique<Ui::RippleAnimation>(st::defaultRippleAnimation, std_::move(mask), [this, index = findRowIndex(&row)] {
|
||||
updateRow(_data[index]);
|
||||
}));
|
||||
}
|
||||
auto origin = mapFromGlobal(QCursor::pos()) - QPoint(0, row.top());
|
||||
|
|
Loading…
Reference in New Issue