From: unknown Date: Fri, 19 Apr 2013 13:21:33 +0000 (+0200) Subject: Feature #1711 CreaDevManager application implementation X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=67757af5e4c42450a232987519be5daa2d8b6654;p=crea.git Feature #1711 CreaDevManager application implementation Fix: Handle when the build path is opened but it doesn't exist yet. --- diff --git a/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp index 920408c..a6f121b 100644 --- a/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp @@ -327,9 +327,8 @@ void wxCDMProjectDescriptionPanel::OnBtnSetBuildPath(wxCommandEvent& event) void wxCDMProjectDescriptionPanel::OnBtnOpenBuild(wxCommandEvent& event) { - std::string* result; if(CDMUtilities::openFileExplorer(this->project->GetBuildPath())) - wxMessageBox(crea::std2wx(*result),_T("Open Folder - Error!"),wxOK | wxICON_ERROR); + wxMessageBox(crea::std2wx("The folder doesn't exist or hasn't yet been created."),_T("Open Folder - Error!"),wxOK | wxICON_ERROR); } void wxCDMProjectDescriptionPanel::OnBtnOpenFolder(wxCommandEvent& event)