| 122 | } |
| 123 | |
| 124 | void UndoSystem::clear() |
| 125 | { |
| 126 | setActiveUndoStack(nullptr); |
| 127 | _undoStack.clear(); |
| 128 | _redoStack.clear(); |
| 129 | _eventSignal.emit(EventType::AllOperationsCleared, std::string()); |
| 130 | |
| 131 | // greebo: This is called on map shutdown, so don't clear the observers, |
| 132 | // there are some "persistent" observers like EntityInspector and ShaderClipboard |
| 133 | } |
| 134 | |
| 135 | sigc::signal<void(IUndoSystem::EventType, const std::string&)>& UndoSystem::signal_undoEvent() |
| 136 | { |