DiffEditor/VCS: Save document before applying/reverting patch chunk

Fixes: QTCREATORBUG-22506
Change-Id: I646f24068c0c81890f36052537320a743fdeb498
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2022-10-16 04:59:51 +03:00
committed by Orgad Shaneh
parent 7edf743583
commit f696d1e6cf
4 changed files with 23 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ public:
static Utils::FilePath patchCommand();
static void setPatchCommand(const Utils::FilePath &newCommand);
static bool confirmPatching(QWidget *parent, PatchAction patchAction);
static bool confirmPatching(QWidget *parent, PatchAction patchAction, bool isModified);
// Utility to run the 'patch' command
static bool runPatch(const QByteArray &input, const Utils::FilePath &workingDirectory = {},