aboutsummaryrefslogtreecommitdiffstats
path: root/commands/command_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'commands/command_base.cpp')
-rw-r--r--commands/command_base.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/command_base.cpp b/commands/command_base.cpp
index 20147a541..1f924378b 100644
--- a/commands/command_base.cpp
+++ b/commands/command_base.cpp
@@ -45,6 +45,16 @@ QAction *redoAction(QObject *parent)
return undoStack.createRedoAction(parent, QCoreApplication::translate("Command", "&Redo"));
}
+// return a string that can be used for the commit message and should list the changes that
+// were made to the dive list
+QString changesMade()
+{
+ QString changeTexts;
+ for (int i = 0; i < undoStack.index(); i++)
+ changeTexts += undoStack.text(i) + "\n";
+ return changeTexts;
+}
+
bool execute(Base *cmd)
{
if (cmd->workToBeDone()) {