MCPcopy Create free account
hub / github.com/KDE/kdevelop / documentSaved

Method documentSaved

plugins/patchreview/patchreview.cpp:544–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void 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
556void PatchReviewPlugin::textDocumentCreated( IDocument* doc ) {
557 if (m_patch) {

Callers

nothing calls this directly

Calls 3

urlMethod · 0.45
fileMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected