Browse Source

Better comments in files related to my previous commit.

6.0.7
jean-pierre charras 5 years ago
parent
commit
6a81113c2d
  1. 5
      eeschema/symbol_tree_model_adapter.cpp
  2. 10
      pcbnew/load_select_footprint.cpp

5
eeschema/symbol_tree_model_adapter.cpp

@ -85,10 +85,11 @@ void SYMBOL_TREE_MODEL_ADAPTER::AddLibraries( const std::vector<wxString>& aNick
if( prg )
{
// Force immediate deletion of the WX_PROGRESS_REPORTER (do not use Destroy() )
// Force immediate deletion of the APP_PROGRESS_DIALOG
// ( do not use Destroy(), or use Destroy() followed by wxSafeYield() )
// because on Windows, APP_PROGRESS_DIALOG has some side effects on the event loop
// manager. A side effect is the call of ShowModal() of a dialog following
// the use of SYMBOL_TREE_MODEL_ADAPTER creating a SYMBOL_TREE_MODEL_ADAPTER
// the use of SYMBOL_TREE_MODEL_ADAPTER creating a APP_PROGRESS_DIALOG
// has a broken behavior (incorrect modal behavior).
delete prg;
m_show_progress = false;

10
pcbnew/load_select_footprint.cpp

@ -212,10 +212,12 @@ FOOTPRINT* PCB_BASE_FRAME::SelectFootprintFromLibTree( LIB_ID aPreselect )
_( "Loading Footprint Libraries" ), 3 );
GFootprintList.ReadFootprintFiles( fpTable, nullptr, progressReporter );
bool cancel = progressReporter->WasCancelled();
// Force immediate deletion of the WX_PROGRESS_REPORTER (do not use Destroy() )
// because on Windows, APP_PROGRESS_DIALOG has some side effects on the event loop
// manager. A side effect is the call of ShowModal() of a dialog following
// the use of SYMBOL_TREE_MODEL_ADAPTER creating a SYMBOL_TREE_MODEL_ADAPTER
// Force immediate deletion of the WX_PROGRESS_REPORTER
// ( do not use Destroy(), or use Destroy() followed by wxSafeYield() )
// because on Windows, APP_PROGRESS_DIALOG or WX_PROGRESS_REPORTER has some side
// effects on the event loop manager.
// A side effect is the call of ShowModal() or ShowQuasiModal() of a dialog following
// the use of a WX_PROGRESS_REPORTER
// has a broken behavior (incorrect modal or quasi modal behavior).
delete progressReporter;

Loading…
Cancel
Save