~pierre-parent-k/kicad/length-tunning

« back to all changes in this revision

Viewing changes to pcbnew/dialogs/dialog_edit_module_for_Modedit.cpp

  • Committer: Pierre Parent
  • Date: 2014-07-06 10:32:13 UTC
  • mfrom: (4798.1.179 kicad)
  • Revision ID: pierre.parent@insa-rouen.fr-20140706103213-wjsdy0hc9q6wbz5v
Merge with lp:kicad 4977

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
    }
304
304
 
305
305
    if( !fullpath )
306
 
        fullpath = prj.RPath(PROJECT::VIEWER_3D).LastVisitedPath( search, LIB3D_PATH );
 
306
    {
 
307
        fullpath = prj.GetRString( PROJECT::VIEWER_3D_PATH );
 
308
        if( !fullpath )
 
309
            fullpath = search.LastVisitedPath( LIB3D_PATH );
 
310
    }
307
311
 
308
312
#ifdef __WINDOWS__
309
313
    fullpath.Replace( wxT( "/" ), wxT( "\\" ) );
330
334
 
331
335
    wxFileName fn = fullfilename;
332
336
 
333
 
    prj.RPath(PROJECT::VIEWER_3D).SaveLastVisitedPath( fn.GetPath() );
 
337
    prj.SetRString( PROJECT::VIEWER_3D_PATH, fn.GetPath() );
334
338
 
335
339
    /* If the file path is already in the library search paths
336
340
     * list, just add the library name to the list.  Otherwise, add