MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyMessageBoxResultQuit

Method notifyMessageBoxResultQuit

Tools/LayoutEditor/EditorState.cpp:468–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 }
467
468 void EditorState::notifyMessageBoxResultQuit(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result)
469 {
470 if (_result == MyGUI::MessageBoxStyle::Yes)
471 {
472 if (mFileName == mDefaultFileName)
473 {
474 showSaveAsWindow();
475 }
476 else
477 {
478 if (save())
479 {
480 StateManager::getInstance().stateEvent(this, "Exit");
481 }
482 }
483 }
484 else if (_result == MyGUI::MessageBoxStyle::No)
485 {
486 StateManager::getInstance().stateEvent(this, "Exit");
487 }
488 }
489
490 bool EditorState::checkCommand()
491 {

Callers

nothing calls this directly

Calls 1

stateEventMethod · 0.80

Tested by

no test coverage detected