diff --git a/pcbnew/plugins/kicad/kicad_plugin.cpp b/pcbnew/plugins/kicad/kicad_plugin.cpp index 110835140a..c3fa91f0b7 100644 --- a/pcbnew/plugins/kicad/kicad_plugin.cpp +++ b/pcbnew/plugins/kicad/kicad_plugin.cpp @@ -264,8 +264,6 @@ void FP_CACHE::Load() footprint->SetFPID( LIB_ID( wxEmptyString, fpName ) ); m_footprints.insert( fpName, new FP_CACHE_ITEM( footprint, fn ) ); - - m_cache_timestamp += fn.GetTimestamp(); } catch( const IO_ERROR& ioe ) { @@ -276,6 +274,8 @@ void FP_CACHE::Load() } } while( dir.GetNext( &fullName ) ); + m_cache_timestamp = GetTimestamp( m_lib_raw_path ); + if( !cacheError.IsEmpty() ) THROW_IO_ERROR( cacheError ); }