aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/appost.cpp
diff options
context:
space:
mode:
authorConfuSomu2023-08-16 12:49:23 -0400
committerConfuSomu2023-08-16 14:38:17 -0400
commitc45f6501f501a65f753604bfd2341035ae12fd30 (patch)
tree3bb37bb6adae850ddb91baffa01a957576615e41 /src/activitypub/appost.cpp
parent52add29e0a380618a358fdbaddb612703d36eb90 (diff)
downloadActorViewer-c45f6501f501a65f753604bfd2341035ae12fd30.tar
ActorViewer-c45f6501f501a65f753604bfd2341035ae12fd30.tar.gz
ActorViewer-c45f6501f501a65f753604bfd2341035ae12fd30.zip
Make quick_read_setting() a templated method
This allows terser usage and removes the need for manually invoking QVariant's .value<T>() method.
Diffstat (limited to 'src/activitypub/appost.cpp')
-rw-r--r--src/activitypub/appost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activitypub/appost.cpp b/src/activitypub/appost.cpp
index 24a01f5..87d6f08 100644
--- a/src/activitypub/appost.cpp
+++ b/src/activitypub/appost.cpp
@@ -47,7 +47,7 @@ QString APPost::get_html_render(HtmlRenderDetails render_info) {
if (published.isValid()) {
// Using QLocale::toString() is forward compatible with Qt 6 as QDateTime::toString() will not return anymore a string in the system locale.
html.replace("{{published}}", render_info.locale->toString(
- SettingsInterface::quick_read_setting("ui/timezone").value<AppSettingsTypes::Timezone>() ? published.toUTC() : published.toLocalTime()
+ SettingsInterface::quick_read_setting<AppSettingsTypes::Timezone>("ui/timezone") ? published.toUTC() : published.toLocalTime()
));
}