X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMProjectActionsPanel.cpp;h=676e1b2b96b38ceef2acb89db307f0e9c39ce776;hb=03aef77bacc41f53b1d21b88e683302e7e1600c2;hp=ddfe262e867ed7271cd971e5045e3903be2843e8;hpb=327c33758d25e6ff1f90f9ab74ea219eaed934a9;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp index ddfe262..676e1b2 100755 --- a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp @@ -170,10 +170,14 @@ void wxCDMProjectActionsPanel::OnBtnConnectProject(wxCommandEvent& event) wxT("Please select the folder containing the bbtkPackage file you want to use. Usually it is where you built your project."), crea::std2wx(this->project->GetBuildPath()) ); + std::cout << crea::wx2std(file) << std::endl; + std::cout.flush(); - if(file.IsEmpty() || !this->project->Connect(result, crea::wx2std(file))) + if(crea::wx2std(file) == "" || !this->project->Connect(result, crea::wx2std(file))) { - wxMessageBox(crea::std2wx(result->c_str()), wxT("Plug Packages - Error!")); + if (crea::wx2std(file) == "") + result = new std::string("Folder not specified."); + wxMessageBox(crea::std2wx(result->c_str()), wxT("Plug BBTK Packages - Error!"), wxICON_ERROR); return; } #ifdef _WIN32