| 142 | } |
| 143 | |
| 144 | void EditorState::commandSave(const MyGUI::UString& _commandName, bool& _result) |
| 145 | { |
| 146 | if (!checkCommand()) |
| 147 | return; |
| 148 | |
| 149 | if (ActionManager::getInstance().getChanges()) |
| 150 | { |
| 151 | if (mFileName == mDefaultFileName) |
| 152 | showSaveAsWindow(); |
| 153 | else |
| 154 | save(); |
| 155 | } |
| 156 | |
| 157 | _result = true; |
| 158 | } |
| 159 | |
| 160 | void EditorState::commandSaveAs(const MyGUI::UString& _commandName, bool& _result) |
| 161 | { |
nothing calls this directly
no test coverage detected