Verified Commit 017270a1 authored by Xuetian Weng's avatar Xuetian Weng
Browse files

Fix invalid encoding when getting updates.

flatpak_installed_ref_get_appdata_name returns utf8 string, using
QLatin1String would cause displaying invalid string in UI.
parent ac7bcb66
......@@ -728,7 +728,7 @@ bool FlatpakBackend::loadInstalledApps(FlatpakInstallation *flatpakInstallation)
cid.setId(QString::fromLatin1(flatpak_ref_get_name(FLATPAK_REF(ref))));
#if FLATPAK_CHECK_VERSION(1,1,2)
cid.setName(QString::fromLatin1(flatpak_installed_ref_get_appdata_name(ref)));
cid.setName(QString::fromUtf8(flatpak_installed_ref_get_appdata_name(ref)));
#endif
} else
cid = metadata.component();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment