diff --git a/DialogTools/ConnectDatasourceDlg.cpp b/DialogTools/ConnectDatasourceDlg.cpp index 1c9a1463e..595fe30b5 100644 --- a/DialogTools/ConnectDatasourceDlg.cpp +++ b/DialogTools/ConnectDatasourceDlg.cpp @@ -732,6 +732,7 @@ void RecentDatasource::Add(wxString ds_name, wxString ds_conf, wxString layer_na } else { ds_names.erase(ds_names.begin()); ds_confs.erase(ds_confs.begin()); + ds_layernames.erase(ds_layernames.begin()); ds_thumbnails.erase(ds_thumbnails.begin()); ds_names.push_back(ds_name);