From: Daniel Carl Date: Tue, 11 Apr 2017 10:05:11 +0000 (+0200) Subject: Fixed webinspector not opend on second attempt. X-Git-Url: https://git.owens.tech/assets/me.jpg/assets/me.jpg/git?a=commitdiff_plain;h=be67e57c4f790ed43ca340dab0c453ff1ad396ca;p=vimb.git Fixed webinspector not opend on second attempt. If the webinspector was opened and closed via 'gF' it could not be opened again with this key combination. --- diff --git a/src/normal.c b/src/normal.c index e71a4f1..be5e987 100644 --- a/src/normal.c +++ b/src/normal.c @@ -767,7 +767,7 @@ static VbResult normal_view_inspector(Client *c, const NormalCmdInfo *info) /* Try to get the inspected uri to identify if the inspector is shown at * the time or not. */ - if (webkit_web_inspector_get_inspected_uri(inspector)) { + if (webkit_web_inspector_is_attached(inspector)) { webkit_web_inspector_close(inspector); } else if (webkit_settings_get_enable_developer_extras(settings)) { webkit_web_inspector_show(inspector);