Skip to content

Commit

Permalink
Fixed #66
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Aug 16, 2015
1 parent f0eb134 commit d4b440e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions OutfitStudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d4b440e

Please sign in to comment.