From be67e57c4f790ed43ca340dab0c453ff1ad396ca Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 11 Apr 2017 12:05:11 +0200
Subject: [PATCH] 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.
---
 src/normal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.20.1