Skip to content

Commit

Permalink
core: Re-add the early return in cog_platform_init_web_view()
Browse files Browse the repository at this point in the history
... if class defines both .get_view_type and .init_web_view.

This brings again the change reverted in "wl: Remove early return on
cog_platform_init_web_view()".
  • Loading branch information
psaavedra committed Oct 26, 2023
1 parent 8eb1eea commit 24bd92d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/cog-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ cog_platform_init_web_view (CogPlatform *platform,
g_warning_once("%s: class %s defines both .get_view_type and .init_web_view, "
"the latter should be removed.",
G_STRFUNC, G_OBJECT_CLASS_NAME(platform));
return;
}

klass->init_web_view(platform, view);
Expand Down

0 comments on commit 24bd92d

Please sign in to comment.