]> Creatis software - crea.git/commitdiff
Feature #1711
authorDaniel Felipe Gonzalez <daniel.gonzalez@creatis.insa-lyon.fr>
Thu, 31 Jan 2013 17:07:14 +0000 (18:07 +0100)
committerDaniel Felipe Gonzalez <daniel.gonzalez@creatis.insa-lyon.fr>
Thu, 31 Jan 2013 17:07:14 +0000 (18:07 +0100)
CreaDevManager application implementation

- Fixed new GUI application main file not recognized bug.
- Fixed new GUI application description view not changed.

lib/creaDevManagerLib/wxCDMMainFrame.cpp

index e1df059b21ffe9f5d7fdab9dc163072d1ebb6f57..5305703190ec0f1a5922f55d8d6203ecde7146c2 100755 (executable)
@@ -152,6 +152,8 @@ void wxCDMMainFrame::RefreshProject()
   this->model->RefreshProject(result);
   std::cout << "rebuilding project tree" << std::endl;
   this->tree_Projects->BuildTree(this->model->GetModelElements(), this->model->GetProject());
+  this->tree_Projects->Unselect();
+  this->actualTreeItem.Unset();
 }
 
 void wxCDMMainFrame::CreateMenus()
@@ -467,6 +469,7 @@ void wxCDMMainFrame::OnMenuRefreshProject(wxCommandEvent& event)
       this->auiManager.Update();
 
       this->tree_Projects->Unselect();
+         this->actualTreeItem.Unset();
       this->tree_Projects->SelectItem(this->model->GetProject()->GetId().GetWxId(), true);
     }
   event.Skip();