Corrects IsDirWritable check

The check for IsDirWritable needs to reference the absolute path to
return correct values.

Fixes: lp:1853421
* https://bugs.launchpad.net/kicad/+bug/1853421

(cherry picked from commit dbb9b5f64f)
This commit is contained in:
M.Scholz 2019-11-21 17:21:25 -08:00 committed by Seth Hillbrand
parent 6cc7dc7aaa
commit 61f593f350
1 changed files with 7 additions and 2 deletions

View File

@ -159,9 +159,14 @@ bool PGM_KICAD::OnPgmInit()
}
// Do not attempt to load a non-existent project file.
if( !projToLoad.empty() && wxFileExists( projToLoad ) )
if( !projToLoad.empty() )
{
frame->LoadProject( projToLoad );
wxFileName fn( projToLoad );
if( fn.Exists() )
{
fn.MakeAbsolute();
frame->LoadProject( fn );
}
}
frame->Show( true );