Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix inspector handling when inspector is disabled. - surf - customized build o…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 2223e9ed2264cf1203865b7a0548e0724c89e527
parent 1ebb5c624e0db26c8a0632637ff8e3941d20daef
Author: Quentin Rameau <[email protected]>
Date: Tue, 3 Nov 2015 15:42:30 +0100
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 <[email protected]>
Diffstat:
M surf.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -695,10 +695,12 @@ initdownload(WebKitWebView *view, WebKitDownload *o, Cli…
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 *
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.