From c739a0422d3c8d6c93a4b05646d256f02c189d8d Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 14 Apr 2020 19:29:22 +0200 Subject: [PATCH] Fix encrypted event indicator --- src/timeline/TimelineModel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index d54677f7..35de082a 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -579,12 +579,12 @@ TimelineModel::internalAddEvents( if (auto event = std::get_if>(&e)) { - e = decryptEvent(*event).event; - } - auto encInfo = mtx::accessors::file(e); + auto e_ = decryptEvent(*event).event; + auto encInfo = mtx::accessors::file(e_); - if (encInfo) - emit newEncryptedImage(encInfo.value()); + if (encInfo) + emit newEncryptedImage(encInfo.value()); + } this->events.insert(id, e); ids.push_back(id);