1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Require UndoManager to have empty history when destroying it...

...which is a justified assumption now.

Do not call ClearStates().  Do not attempt to repopulate ConnectionPtr if the
project is being destroyed.
This commit is contained in:
Paul Licameli
2020-09-05 16:04:43 -04:00
parent 49fc197e42
commit 7c9e824943
2 changed files with 3 additions and 1 deletions

View File

@@ -107,6 +107,8 @@ inline UndoPush operator | (UndoPush a, UndoPush b)
inline UndoPush operator & (UndoPush a, UndoPush b)
{ return static_cast<UndoPush>(static_cast<int>(a) & static_cast<int>(b)); }
//! Maintain a non-persistent list of states of the project, to support undo and redo commands
/*! The history should be cleared before destruction */
class AUDACITY_DLL_API UndoManager final
: public ClientData::Base
{