src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Mon, 6 Jun 2016 08:43:45 +0000 (16:43 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 6 Jun 2016 08:43:45 +0000 (16:43 +0800)
src/Builder4/WindowState.vala

index 56aff30..969dec2 100644 (file)
@@ -120,6 +120,10 @@ public class WindowState : Object
                this.left_tree.el.show_all();
                   
                this.left_tree.before_node_change.connect(() => {
+                       // if the node change is caused by the editor (code preview)
+                       if (this.left_tree.tree.lastEventSource == "editor") {
+                               return false;
+                       }
                        return this.leftTreeBeforeChange();
 
                });