| 393 | } |
| 394 | |
| 395 | void Application::command_QuitApp(const MyGUI::UString& _commandName, bool& _result) |
| 396 | { |
| 397 | if (DialogManager::getInstance().getAnyDialog()) |
| 398 | { |
| 399 | DialogManager::getInstance().endTopDialog(); |
| 400 | } |
| 401 | else |
| 402 | { |
| 403 | if (MessageBoxManager::getInstance().hasAny()) |
| 404 | { |
| 405 | MessageBoxManager::getInstance().endTop(MyGUI::MessageBoxStyle::Cancel); |
| 406 | } |
| 407 | else |
| 408 | { |
| 409 | CommandManager::getInstance().executeCommand("Command_Quit"); |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | _result = true; |
| 414 | } |
| 415 | |
| 416 | void Application::command_UpdateAppCaption(const MyGUI::UString& _commandName, bool& _result) |
| 417 | { |
nothing calls this directly
no test coverage detected