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

Method notifyMessageBoxResultQuit

Tools/SkinEditor/EditorState.cpp:346–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 }
345
346 void EditorState::notifyMessageBoxResultQuit(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result)
347 {
348 if (_result == MyGUI::MessageBoxStyle::Yes)
349 {
350 if (mFileName == mDefaultFileName)
351 {
352 showSaveAsWindow();
353 }
354 else
355 {
356 save();
357 StateManager::getInstance().stateEvent(this, "Exit");
358 }
359 }
360 else if (_result == MyGUI::MessageBoxStyle::No)
361 {
362 StateManager::getInstance().stateEvent(this, "Exit");
363 }
364 }
365
366 void EditorState::notifyChanges()
367 {

Callers

nothing calls this directly

Calls 1

stateEventMethod · 0.80

Tested by

no test coverage detected