src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Tue, 7 Jun 2016 07:36:42 +0000 (15:36 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 7 Jun 2016 07:36:42 +0000 (15:36 +0800)
src/Builder4/WindowState.vala

index c4d7df6..2c1749a 100644 (file)
@@ -122,7 +122,7 @@ public class WindowState : Object
                this.left_tree.before_node_change.connect(() => {
                        // if the node change is caused by the editor (code preview)
                        if (this.left_tree.view.lastEventSource == "editor") {
-                               return false;
+                               return true;
                        }
                        return this.leftTreeBeforeChange();
 
@@ -139,8 +139,8 @@ public class WindowState : Object
                        }
                });
                
-               this.left_tree.node_selected.connect((sel) => {
-                       this.leftTreeNodeSelected(sel);
+               this.left_tree.node_selected.connect((sel, source) => {
+                       this.leftTreeNodeSelected(sel, source);
                });
         
                this.left_tree.changed.connect(() => {