From d4b440ee03cac084f42fe5849512160ced5c36a0 Mon Sep 17 00:00:00 2001 From: ousnius Date: Mon, 17 Aug 2015 00:02:43 +0200 Subject: [PATCH] Fixed #66 --- OutfitStudio.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OutfitStudio.cpp b/OutfitStudio.cpp index f53e3223..9938075c 100644 --- a/OutfitStudio.cpp +++ b/OutfitStudio.cpp @@ -1496,8 +1496,13 @@ void OutfitStudio::OnSaveSliderSetAs(wxCommandEvent& WXUNUSED(event)) { string res = project->Save(strFileName, strOutfitName, strDataDir, strBaseFile, strGamePath, strGameFile, genWeights, copyRef); - if (res.empty()) - this->GetMenuBar()->Enable(XRCID("fileSave"), true); + if (res.empty()) { + GetMenuBar()->Enable(XRCID("fileSave"), true); + project->outfitName = strOutfitName; + WorkingGUIFromProj(); + if (outfitShapes) + outfitShapes->ExpandAll(); + } else wxMessageBox(res, "Error", wxOK | wxICON_ERROR);