| 101 | } |
| 102 | |
| 103 | void 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 | |
| 117 | VCSDiffPatchSource::VCSDiffPatchSource(VCSDiffUpdater* updater) |
| 118 | : m_updater(updater) |