Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Günther Wagner
gnome-builder
Commits
01cf5ec7
Commit
01cf5ec7
authored
Sep 20, 2017
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flatpak: compare strings before changing property
parent
c4301fff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
plugins/flatpak/gbp-flatpak-runtime.c
plugins/flatpak/gbp-flatpak-runtime.c
+6
-3
No files found.
plugins/flatpak/gbp-flatpak-runtime.c
View file @
01cf5ec7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment