mirror of https://gitlab.com/basile.b/dexed.git
note about commonFolder()
This commit is contained in:
parent
d0f2b1c266
commit
23666992a4
|
|
@ -813,6 +813,7 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
//TODO-cfeature: make it working with relative paths
|
||||||
function commonFolder(const someFiles: TStringList): string;
|
function commonFolder(const someFiles: TStringList): string;
|
||||||
var
|
var
|
||||||
i,j,k: integer;
|
i,j,k: integer;
|
||||||
|
|
|
||||||
|
|
@ -414,12 +414,13 @@ var
|
||||||
if dlgOkCancel( 'The project source(s) are all missing. ' + LineEnding +
|
if dlgOkCancel( 'The project source(s) are all missing. ' + LineEnding +
|
||||||
'This can be encountered if the project file has been moved from its original location.' + LineEnding + LineEnding +
|
'This can be encountered if the project file has been moved from its original location.' + LineEnding + LineEnding +
|
||||||
'Do you wish to select the new root folder ?') <> mrOk then exit;
|
'Do you wish to select the new root folder ?') <> mrOk then exit;
|
||||||
|
// TODO-cimprovement: use commonFolder() when it'll be compat. with the rel. paths.
|
||||||
// hint for the common dir
|
// hint for the common dir
|
||||||
dirHint := fSrcs.Strings[i];
|
dirHint := fSrcs.Strings[i];
|
||||||
while (dirHint[1] = '.') or (dirHint[1] = DirectorySeparator) do
|
while (dirHint[1] = '.') or (dirHint[1] = DirectorySeparator) do
|
||||||
dirHint := dirHint[2..length(dirHint)];
|
dirHint := dirHint[2..length(dirHint)];
|
||||||
ini := extractFilePath(fFilename);
|
ini := extractFilePath(fFilename);
|
||||||
if not selectDirectory( format('select the folder (which contains "%s")',[dirHint]), ini, newdir) then
|
if not selectDirectory( format('select the folder (that contains "%s")',[dirHint]), ini, newdir) then
|
||||||
exit;
|
exit;
|
||||||
for i := 0 to fSrcs.Count-1 do
|
for i := 0 to fSrcs.Count-1 do
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue