| 125 | } |
| 126 | |
| 127 | void PatchReviewToolView::patchChanged() { |
| 128 | fillEditFromPatch(); |
| 129 | kompareModelChanged(); |
| 130 | |
| 131 | #ifdef WITH_PURPOSE |
| 132 | IPatchSource::Ptr p = m_plugin->patch(); |
| 133 | if (p) { |
| 134 | m_exportMenu->model()->setInputData(QJsonObject { |
| 135 | { QStringLiteral("urls"), QJsonArray { p->file().toString() } }, |
| 136 | { QStringLiteral("mimeType"), { QStringLiteral("text/x-patch") } }, |
| 137 | { QStringLiteral("localBaseDir"), { p->baseDir().toString() } }, |
| 138 | { QStringLiteral("updateComment"), { QStringLiteral("Patch updated through KDevelop's Patch Review plugin") } } |
| 139 | }); |
| 140 | } |
| 141 | #endif |
| 142 | } |
| 143 | |
| 144 | PatchReviewToolView::~PatchReviewToolView() |
| 145 | { |