aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-04-11 18:05:23 +0200
committerdec05eba <dec05eba@protonmail.com>2022-04-11 18:05:23 +0200
commit6933a73727c5d88a02fb5c9416a4ccaafc4d7b64 (patch)
tree7074edef2e15eed7fb1cee6b065ef8fdaeb566c8 /src
parentad4265cd01b4cda3823d05d66daaf997fdef4559 (diff)
Matrix: fix crash when copying body item with reactions and the other items reaction has not been loaded
Diffstat (limited to 'src')
-rw-r--r--src/BodyItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BodyItem.cpp b/src/BodyItem.cpp
index 431616d..192a7bf 100644
--- a/src/BodyItem.cpp
+++ b/src/BodyItem.cpp
@@ -60,8 +60,8 @@ namespace QuickMedia {
reactions.clear();
for(auto &reaction : other.reactions) {
Reaction reaction_copy;
- reaction_copy.text = std::make_unique<Text>(*reaction.text);
reaction_copy.userdata = reaction.userdata;
+ reaction_copy.text_color = reaction.text_color;
reactions.push_back(std::move(reaction_copy));
}
title = other.title;