Auto-export on save.

This commit is contained in:
Erik Faye-Lund 2008-10-16 17:37:20 +00:00
parent 02f38874b5
commit 60a5ff3b9f

View File

@ -229,6 +229,7 @@ void fileSaveAs()
{ {
if (document.save(temp)) if (document.save(temp))
{ {
document.sendSaveCommand();
setWindowFileName(temp); setWindowFileName(temp);
fileName = temp; fileName = temp;
@ -245,6 +246,7 @@ void fileSave()
if (fileName.empty()) fileSaveAs(); if (fileName.empty()) fileSaveAs();
else if (!document.save(fileName.c_str())) else if (!document.save(fileName.c_str()))
{ {
document.sendSaveCommand();
MessageBox(hwnd, _T("Failed to save file"), mainWindowTitle, MB_OK | MB_ICONERROR | MB_SETFOREGROUND); MessageBox(hwnd, _T("Failed to save file"), mainWindowTitle, MB_OK | MB_ICONERROR | MB_SETFOREGROUND);
} }
} }