Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
Fix inverted boolean return code for signals (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanholm committed Jun 1, 2017
1 parent 7b6b439 commit 06b5c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/webview.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ decide_policy_cb(WebKitWebView* UNUSED(v), WebKitPolicyDecision *p,
lua_pushstring(L, uri);
lua_pushstring(L, reason);
gint ret = luaH_object_emit_signal(L, -3, signal_name, 2, 1);
gboolean ignore = ret && lua_toboolean(L, -1);
gboolean ignore = ret && !lua_toboolean(L, -1);

if (ignore)
webkit_policy_decision_ignore(p);
Expand Down

0 comments on commit 06b5c9f

Please sign in to comment.