Commit 01cf5ec7 authored by Christian Hergert's avatar Christian Hergert

flatpak: compare strings before changing property

parent c4301fff
......@@ -518,9 +518,12 @@ gbp_flatpak_runtime_set_sdk (GbpFlatpakRuntime *self,
{
g_return_if_fail (GBP_IS_FLATPAK_RUNTIME (self));
g_free (self->sdk);
self->sdk = g_strdup (sdk);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SDK]);
if (g_strcmp0 (sdk, self->sdk) != 0)
{
g_free (self->sdk);
self->sdk = g_strdup (sdk);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SDK]);
}
}
static void
......
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