forked from qt-creator/qt-creator
VcsBaseEditor: Get rid of diffChunkApplied()
Drop unused arg from diffChunkReverted(). Change-Id: I5531645d317d62ae92cd0e63dadd583f8ab8996d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -234,9 +234,7 @@ void GitEditorWidget::applyDiffChunk(const DiffChunk& chunk, PatchAction patchAc
|
||||
else
|
||||
VcsOutputWindow::append(errorMessage);
|
||||
if (patchAction == PatchAction::Revert)
|
||||
emit diffChunkReverted(chunk);
|
||||
else
|
||||
emit diffChunkApplied(chunk);
|
||||
emit diffChunkReverted();
|
||||
} else {
|
||||
VcsOutputWindow::appendError(errorMessage);
|
||||
}
|
||||
|
@@ -1590,12 +1590,8 @@ void VcsBaseEditorWidget::slotApplyDiffChunk(const DiffChunk &chunk, PatchAction
|
||||
if (!PatchTool::confirmPatching(this, patchAction))
|
||||
return;
|
||||
|
||||
if (applyDiffChunk(chunk, patchAction)) {
|
||||
if (patchAction == PatchAction::Revert) // TODO: make just one signal
|
||||
emit diffChunkReverted(chunk);
|
||||
else
|
||||
emit diffChunkApplied(chunk);
|
||||
}
|
||||
if (applyDiffChunk(chunk, patchAction) && patchAction == PatchAction::Revert)
|
||||
emit diffChunkReverted();
|
||||
}
|
||||
|
||||
// Tagging of editors for re-use.
|
||||
|
@@ -199,8 +199,7 @@ signals:
|
||||
void describeRequested(const Utils::FilePath &source, const QString &change);
|
||||
void annotateRevisionRequested(const Utils::FilePath &workingDirectory, const QString &file,
|
||||
const QString &change, int lineNumber);
|
||||
void diffChunkApplied(const VcsBase::DiffChunk &dc);
|
||||
void diffChunkReverted(const VcsBase::DiffChunk &dc);
|
||||
void diffChunkReverted();
|
||||
|
||||
protected:
|
||||
void contextMenuEvent(QContextMenuEvent *e) override;
|
||||
|
Reference in New Issue
Block a user