]> Creatis software - bbtkGEditor.git/commitdiff
Bug #1377
authorcervenansky <>
Thu, 24 May 2012 15:45:49 +0000 (15:45 +0000)
committercervenansky <>
Thu, 24 May 2012 15:45:49 +0000 (15:45 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx

index 2f1fc26571625e23f8ee55c1ffeb1468a5d72eee..d3a0cd37e4ccc2833d33c4f930fcd0c83de47079 100644 (file)
@@ -731,6 +731,12 @@ void wxGUIEditorGraphicBBS::OnSaveActualDiagram(wxCommandEvent& event) {
                pathfilenamebbs[pathfilenamebbs.length() - 1] = 's';
                
                if (_tabsMgr->isActualDiagramComplexBox() == false) {
+                       std::string name = _tabsMgr->GetNameTabPanel();
+                       if(name[name.length() - 1] == '*')
+                       {
+                               name =name.substr(0,name.length()-1);
+                       }
+                       _tabsMgr->SetNameTabPanel(wxString (name.c_str(), wxConvUTF8));
                        SaveActualDiagram(pathfilename);
                        SaveActualBBS(pathfilenamebbs);
                } else {
@@ -912,12 +918,12 @@ void wxGUIEditorGraphicBBS::OnHelpBBeditor(wxCommandEvent& event) {
 //=========================================================================
 void wxGUIEditorGraphicBBS::OnCreatePackage(wxCommandEvent& event) {
 
-       bbtkSystemTools::CreatePackage();
+       //bbtkSystemTools::CreatePackage();
 }
 
 //=========================================================================
 void wxGUIEditorGraphicBBS::OnCreateBlackBox(wxCommandEvent& event) {
-       bbtkSystemTools::CreateBlackBox();
+       //bbtkSystemTools::CreateBlackBox();
 }
 //=========================================================================
 void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) {