| 106 | } |
| 107 | |
| 108 | void FileEditController::undoFileEdit(const QString &editId) |
| 109 | { |
| 110 | LOG_MESSAGE(QString("Undoing file edit: %1").arg(editId)); |
| 111 | if (Context::ChangesManager::instance().undoFileEdit(editId)) { |
| 112 | emit infoMessage(QString("File edit undone successfully")); |
| 113 | updateFileEditStatus(editId, "rejected"); |
| 114 | } else { |
| 115 | auto edit = Context::ChangesManager::instance().getFileEdit(editId); |
| 116 | emit errorOccurred( |
| 117 | edit.statusMessage.isEmpty() |
| 118 | ? QString("Failed to undo file edit") |
| 119 | : QString("Failed to undo file edit: %1").arg(edit.statusMessage)); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | void FileEditController::openFileEditInEditor(const QString &editId) |
| 124 | { |
nothing calls this directly
no test coverage detected