eeschema: fix in populating DC sim settings tab
When filling drop-down list with sources, previous selection should be saved in local variable and restored if it is still available.
This commit is contained in:
parent
691b53d125
commit
eefac5cc59
|
@ -392,8 +392,8 @@ void DIALOG_SIM_SETTINGS::updateDCSources( wxChar aType, wxChoice* aSource )
|
|||
{
|
||||
wxString prevSelection;
|
||||
|
||||
if( aSource->GetCount() )
|
||||
aSource->GetString( aSource->GetSelection() );
|
||||
if( !aSource->IsEmpty() )
|
||||
prevSelection = aSource->GetString( aSource->GetSelection() );
|
||||
|
||||
std::vector<wxString> sourcesList;
|
||||
bool enableSrcSelection = true;
|
||||
|
|
Loading…
Reference in New Issue