Skip to content

Commit

Permalink
#873 Recent doesn't show thumbnail for drag-n-drop gda
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed May 31, 2017
1 parent 92ecf8e commit 9935745
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions DialogTools/ConnectDatasourceDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,10 +729,14 @@ void ConnectDatasourceDlg::OnOkClick( wxCommandEvent& event )
gda_frame->OpenProject(ds_file_path.GetFullPath());
wxLogMessage(_("Open project file:") + ds_file_path.GetFullPath());
try {
Project* project = gda_frame->GetProject();
wxString layer_name;
if (project) layer_name = project->layername;

RecentDatasource recent_ds;
recent_ds.Add(ds_file_path.GetFullPath(), ds_file_path.GetFullPath(), "");
recent_ds.Add(ds_file_path.GetFullPath(), ds_file_path.GetFullPath(), layer_name);
} catch( GdaException ex) {
LOG_MSG(ex.what());
wxLogMessage(ex.what());
}
EndDialog();
}
Expand Down

0 comments on commit 9935745

Please sign in to comment.