aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/room.cpp1
-rw-r--r--lib/settings.cpp5
-rw-r--r--lib/settings.h2
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index ffe78a3a..c9363a00 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2128,6 +2128,7 @@ bool Room::Private::processRedaction(const RedactionEvent& redaction)
qMakePair(targetEvtId, EventRelation::Annotation());
if (relations.contains(lookupKey)) {
relations[lookupKey].removeOne(reaction);
+ emit q->updatedEvent(targetEvtId);
}
}
q->onRedaction(*oldEvent, *ti);
diff --git a/lib/settings.cpp b/lib/settings.cpp
index 0349e699..5413693d 100644
--- a/lib/settings.cpp
+++ b/lib/settings.cpp
@@ -16,6 +16,11 @@ void Settings::setLegacyNames(const QString& organizationName,
legacyApplicationName = applicationName;
}
+Settings::Settings(QObject* parent) : QSettings(parent)
+{
+ setIniCodec("UTF-8");
+}
+
void Settings::setValue(const QString& key, const QVariant& value)
{
QSettings::setValue(key, value);
diff --git a/lib/settings.h b/lib/settings.h
index 79ebba6c..5a097285 100644
--- a/lib/settings.h
+++ b/lib/settings.h
@@ -39,7 +39,7 @@ public:
static void setLegacyNames(const QString& organizationName,
const QString& applicationName = {});
- using QSettings::QSettings;
+ explicit Settings(QObject* parent = nullptr);
/// Set the value for a given key
/*! If the key exists in the legacy location, it is removed. */