diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-17 21:15:41 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-17 21:15:41 +0000 |
commit | 33e626bad79152925fc6d42c82525406e663addd (patch) | |
tree | f90e21f0ae0ec98f62b47befefaa56ced91a37d9 /libs/pbd/pbd/undo.h | |
parent | 0ef71e47de8870e74f02b457cb513930df514266 (diff) |
isomorphous fix for UndoTransaction death as was previously applied for MementoCommand (i.e. avoid delete this)
git-svn-id: svn://localhost/ardour2/trunk@989 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/undo.h')
-rw-r--r-- | libs/pbd/pbd/undo.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/pbd/pbd/undo.h b/libs/pbd/pbd/undo.h index eecd8ae49d..943c115af2 100644 --- a/libs/pbd/pbd/undo.h +++ b/libs/pbd/pbd/undo.h @@ -40,8 +40,11 @@ class UndoTransaction : public Command ~UndoTransaction (); void clear (); + bool empty() const; + bool clearing () const { return _clearing; } void add_command (Command* const); + void remove_command (Command* const); void operator() (); void undo(); @@ -66,8 +69,7 @@ class UndoTransaction : public Command std::list<Command*> actions; struct timeval _timestamp; std::string _name; - bool clearing; - void remove_command (Command* const); + bool _clearing; }; class UndoHistory @@ -94,7 +96,7 @@ class UndoHistory void save_state(); private: - bool clearing; + bool _clearing; std::list<UndoTransaction*> UndoList; std::list<UndoTransaction*> RedoList; |