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:
parent
6cc7dc7aaa
commit
61f593f350
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue