From 0524f3aea85344c681626505c58d210882a75df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Mon, 29 May 2017 10:02:33 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@503 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/io/pidir.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src_main/io/pidir.cpp b/src_main/io/pidir.cpp index 6c36565a..2494235d 100755 --- a/src_main/io/pidir.cpp +++ b/src_main/io/pidir.cpp @@ -185,16 +185,22 @@ PIDir & PIDir::cd(const PIString & path) { bool PIDir::make(bool withParents) { PIDir d = cleanedPath(); - PIString tp; - //bool is_abs = isAbsolute(); + //PIString tp; +#ifndef WINDOWS + bool is_abs = isAbsolute(); +#endif if (withParents) { PIStringList l = d.path().split(separator); - //piCout << l; + piCout << l; l.removeAll(""); //piCout << l; PIString cdp; piForeachC (PIString & i, l) { - if (!cdp.isEmpty()) + if (!cdp.isEmpty() +#ifndef WINDOWS + || is_abs +#endif + ) cdp += separator; cdp += i; //piCout << "dir" << cdp;