From 1ec109748f715cc0150bfd4e75326371a9d82dc5 Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 25 Sep 2020 20:43:45 +0200 Subject: [PATCH] fixed crash when removing item in settings list --- src/common/SignalVectorModel.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/SignalVectorModel.hpp b/src/common/SignalVectorModel.hpp index c00476d88..21e84b437 100644 --- a/src/common/SignalVectorModel.hpp +++ b/src/common/SignalVectorModel.hpp @@ -71,8 +71,7 @@ public: assert(row >= 0 && row <= this->rows_.size()); // remove row - std::vector items = - std::move(this->rows_[row].items); + std::vector items = this->rows_[row].items; this->beginRemoveRows(QModelIndex(), row, row); this->rows_.erase(this->rows_.begin() + row);