mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[macos] fix bug 58775
This commit is contained in:
@ -1478,17 +1478,13 @@
|
||||
|
||||
NSInteger returnCode = [alert runModalSheet];
|
||||
|
||||
if (returnCode == NSAlertFirstButtonReturn) {
|
||||
NSEditorApi::CAscEditorSaveQuestion * pEventData = new NSEditorApi::CAscEditorSaveQuestion();
|
||||
NSEditorApi::CAscMenuEvent* pEvent = new NSEditorApi::CAscMenuEvent(ASC_MENU_EVENT_TYPE_DOCUMENTEDITORS_SAVE_YES_NO);
|
||||
NSEditorApi::CAscEditorSaveQuestion * pEventData = new NSEditorApi::CAscEditorSaveQuestion();
|
||||
NSEditorApi::CAscMenuEvent* pEvent = new NSEditorApi::CAscMenuEvent(ASC_MENU_EVENT_TYPE_DOCUMENTEDITORS_SAVE_YES_NO);
|
||||
|
||||
if (pEvent && pEventData) {
|
||||
pEventData->put_Value(true);
|
||||
pEvent->m_pData = pEventData;
|
||||
pEventData->put_Value(returnCode == NSAlertFirstButtonReturn);
|
||||
pEvent->m_pData = pEventData;
|
||||
|
||||
[cefView apply:pEvent];
|
||||
}
|
||||
}
|
||||
[cefView apply:pEvent];
|
||||
}
|
||||
|
||||
- (void)onCEFStartPageReady:(NSNotification *)notification {
|
||||
|
||||
Reference in New Issue
Block a user