X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMApplicationDescriptionPanel.cpp;h=9f91b854fe918fffa389f0ac424e1c5491cd2975;hb=1841853d0641ad2c482ab8a2a6814fc05b2f6eba;hp=acf54c0a984d473cbbf3b5a22e7d1fd7f3909dfd;hpb=23d2c5e812c884873668fc3c78ff3fac5fe08214;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp index acf54c0..9f91b85 100644 --- a/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp @@ -369,7 +369,10 @@ void wxCDMApplicationDescriptionPanel::On3rdLibraryChBChange(wxCommandEvent& eve void wxCDMApplicationDescriptionPanel::OnLibraryChBChange(wxCommandEvent& event) { - this->application->SetCustomLibrary(crea::wx2std(((wxCheckBox*)event.GetEventObject())->GetName()), ((wxCheckBox*)event.GetEventObject())->GetValue()); + if(this->application->SetCustomLibrary(crea::wx2std(((wxCheckBox*)event.GetEventObject())->GetName()), ((wxCheckBox*)event.GetEventObject())->GetValue())) + ((wxCheckBox*)event.GetEventObject())->SetValue(((wxCheckBox*)event.GetEventObject())->GetValue()); + else + ((wxCheckBox*)event.GetEventObject())->SetValue(!((wxCheckBox*)event.GetEventObject())->GetValue()); } void wxCDMApplicationDescriptionPanel::OnBtnCreateClass(wxCommandEvent& event)