From 9ffb694c9d801f8365b5e2b99408ed05ef0fc505 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 2 Jun 2015 21:14:31 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 2 +- src/Builder4/Editor.vala | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 5b7afeab0..54664cb3b 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -30,7 +30,7 @@ "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "@ void save" : "()", "$ homogeneous" : false, - "| void forwardSearch" : "() {\n\n}\n", + "| void forwardSearch" : "() {\n\n\tif (this.searchcontext == null) {\n\t\treturn;\n\t}\n\t\n\n}\n", "# JsRender.Node node" : "null", "items" : [ { diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index fe53b25fd..4aca94d3b 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -168,6 +168,11 @@ public class Editor : Object } public void forwardSearch () { + if (this.searchcontext == null) { + return; + } + + } public class Xcls_Box2 : Object { -- 2.39.2