| 542 | } |
| 543 | |
| 544 | void PatchReviewPlugin::documentSaved( IDocument* doc ) { |
| 545 | // Only update if the url is not the patch-file, because our call to |
| 546 | // the reload() KTextEditor function also causes this signal, |
| 547 | // which would lead to an endless update loop. |
| 548 | // Also, don't automatically update local patch sources, because |
| 549 | // they may correspond to static files which don't match any more |
| 550 | // after an edit was done. |
| 551 | if (m_patch && doc->url() != m_patch->file() && !qobject_cast<LocalPatchSource*>(m_patch.data())) { |
| 552 | forceUpdate(); |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | void PatchReviewPlugin::textDocumentCreated( IDocument* doc ) { |
| 557 | if (m_patch) { |