src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 09:12:20 +0000 (17:12 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 09:12:20 +0000 (17:12 +0800)
src/Builder4/WindowState.vala

index a322251..f00b51d 100644 (file)
@@ -116,11 +116,14 @@ public class WindowState : Object
                });
         
                this.left_tree.changed.connect(() => {
-                       this.window_rooview.requestRedraw();
+                       
                        this.left_tree.model.file.save();
-                       if (this.left_tree.model.file.xtype=="Gtk") {
-                               this.valasource.checkFileSpawn(this.left_tree.model.file);
+                       if (this.left_tree.getActiveFile().xtype == "Roo" ) {
+                                  this.window_rooview.requestRedraw();
+                       } else {
+                                 this.window_gladeview.loadFile(this.left_tree.getActiveFile());
                        }
+                        
                });
                 
        }