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

Method jobFinished

kdevplatform/vcs/widgets/vcsdiffpatchsources.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void VCSCommitDiffPatchSource::jobFinished(KJob *job)
104{
105 if (!job || job->error() != 0 )
106 {
107 QString details = job ? job->errorText() : QString();
108 if (details.isEmpty()) { //errorText may be empty
109 details = i18n("For more detailed information please see the Version Control tool view.");
110 }
111 KMessageBox::detailedError(nullptr, i18n("Unable to commit"), details, i18nc("@title:window", "Commit Unsuccessful"));
112 }
113
114 deleteLater();
115}
116
117VCSDiffPatchSource::VCSDiffPatchSource(VCSDiffUpdater* updater)
118 : m_updater(updater)

Callers

nothing calls this directly

Calls 4

errorTextMethod · 0.80
QStringClass · 0.50
errorMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected