]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMProjectActionsPanel.cpp
index ddfe262e867ed7271cd971e5045e3903be2843e8..676e1b2b96b38ceef2acb89db307f0e9c39ce776 100755 (executable)
@@ -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