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