diff options
author | Quentin Rameau <quinq+hackers@fifth.space> | 2015-11-03 15:42:30 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2015-11-03 19:45:04 +0100 |
commit | 2223e9ed2264cf1203865b7a0548e0724c89e527 (patch) | |
tree | 7069c2301d44b50d5476a94a34f9a48fea58a3e5 | |
parent | Fix usage(), -m and -M for styles were absent. (diff) | |
download | surf-2223e9ed2264cf1203865b7a0548e0724c89e527.tar.gz surf-2223e9ed2264cf1203865b7a0548e0724c89e527.tar.bz2 surf-2223e9ed2264cf1203865b7a0548e0724c89e527.zip |
Fix inspector handling when inspector is disabled.
Do not try to show the inspector window when the inspector is disabled. Signed-off-by: Christoph Lohmann <20h@r-36.net>
-rw-r--r-- | surf.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/surf.c b/surf.c index ff2496d..dd9c306 100644 --- a/surf.c +++ b/surf.c @@ -695,10 +695,12 @@ initdownload(WebKitWebView *view, WebKitDownload *o, Client *c) void inspector(Client *c, const Arg *arg) { - if (c->isinspecting) - webkit_web_inspector_close(c->inspector); - else - webkit_web_inspector_show(c->inspector); + if (enableinspector) { + if (c->isinspecting) + webkit_web_inspector_close(c->inspector); + else + webkit_web_inspector_show(c->inspector); + } } WebKitWebView * |