explorer: fixed (bool)path[0]
[ede] / explorer / src / Explorer.ec
index 2f447f8..da5dce5 100644 (file)
@@ -23,7 +23,9 @@ class Explorer : GuiApplication
       QuickPathTool goPath { };
       QuickPathTool searchPath { };
       char * findWhat = null;
+
       SetLoggingMode(debug, null);
+
       if(argc > 1)
       {
          if(!strcmpi(argv[1], "go") && argc > 2)
@@ -61,7 +63,7 @@ class Explorer : GuiApplication
       {
          ExplorerWindow explorerWnd { };
          explorerWnd.Create();
-         //explorerWnd.GoToLocation(goPath);
+         explorerWnd.view.path = goPath;
       }
       else if(searchPath)
       {
@@ -115,7 +117,7 @@ struct QuickPathTool
       }
       get { return path[0] ? path : null; }
    }
-   property bool { get { return (bool)path[0]; } }
+   property bool { get { return path[0] != '\0'; } }
 };
 
 define app = ((Explorer)__thisModule);