Auto-export on save.
This commit is contained in:
parent
02f38874b5
commit
60a5ff3b9f
@ -229,6 +229,7 @@ void fileSaveAs()
|
||||
{
|
||||
if (document.save(temp))
|
||||
{
|
||||
document.sendSaveCommand();
|
||||
setWindowFileName(temp);
|
||||
fileName = temp;
|
||||
|
||||
@ -245,6 +246,7 @@ void fileSave()
|
||||
if (fileName.empty()) fileSaveAs();
|
||||
else if (!document.save(fileName.c_str()))
|
||||
{
|
||||
document.sendSaveCommand();
|
||||
MessageBox(hwnd, _T("Failed to save file"), mainWindowTitle, MB_OK | MB_ICONERROR | MB_SETFOREGROUND);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user