src/Builder4/Editor.bjs
[app.Builder.js] / src / Builder4 / Editor.vala
index 93f01e7..0b982fb 100644 (file)
@@ -466,14 +466,13 @@ public class Editor : Object
                 return true;
             }
             
-            if (_this.file == null && _this.fname.length > 0) {
+            if (_this.file.xtype == "PlainFile") {
             
                 // assume it's gtk...
                    this.check_running = true;
         
                  _this.window.windowstate.valasource.checkPlainFileSpawn(
-                    _this.window.project,
-                   _this.fname,
+                  _this.file,
                    str
                 );
                 return true;