VCS: Simplify promptSubmit a bit more

+ fix regression for Git, which allowed to commit invalid commits.

Amends commit 9b61e484be.

Change-Id: I7571863bb982bfae1aa040e08f8c68010b14b147
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2022-10-17 22:08:51 +03:00
committed by Orgad Shaneh
parent 54604b56db
commit 890b85d17e
5 changed files with 8 additions and 10 deletions

View File

@@ -137,6 +137,8 @@ public:
virtual QString commitDisplayName() const;
void commitFromEditor();
virtual bool canCommitOnFailure() const { return true; }
bool submitActionTriggered() const { return m_submitActionTriggered; }
protected:
// Prompt to save all files before commit: