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;
|
wxString prevSelection;
|
||||||
|
|
||||||
if( aSource->GetCount() )
|
if( !aSource->IsEmpty() )
|
||||||
aSource->GetString( aSource->GetSelection() );
|
prevSelection = aSource->GetString( aSource->GetSelection() );
|
||||||
|
|
||||||
std::vector<wxString> sourcesList;
|
std::vector<wxString> sourcesList;
|
||||||
bool enableSrcSelection = true;
|
bool enableSrcSelection = true;
|
||||||
|
|
Loading…
Reference in New Issue