fixed close click save does not save bug

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4241 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2003-08-08 05:05:10 +00:00
parent f1bf474ac1
commit 82928e6a50

View File

@ -779,11 +779,9 @@ StyledEditWindow::QuitRequested()
} else if(buttonIndex==1) { // "don't save": just close the window
return true;
} else if(!fSaveMessage) { //save as
DispatchMessage(new BMessage(MENU_SAVEAS), this);
return false;
return SaveAs();
} else {
DispatchMessage(new BMessage(B_SAVE_REQUESTED), this);
return true;
return (Save(fSaveMessage) == B_OK);
}
}/***QuitRequested()***/
@ -791,7 +789,7 @@ StyledEditWindow::QuitRequested()
status_t
StyledEditWindow::Save(BMessage *message)
{
status_t err;
status_t err = B_OK;
if(!message){
message=fSaveMessage;
@ -914,6 +912,7 @@ StyledEditWindow::SaveAs()
}
}
fSavePanel->Show();
return B_OK;
}
void