mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix for #25607
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27899 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2d33e2419f
commit
0926201ce5
2 changed files with 8 additions and 2 deletions
|
@ -189,14 +189,15 @@
|
|||
* Starts a new grouping of undo actions which can be
|
||||
* atomically undone by an [-undo] invocation.
|
||||
* This method posts an NSUndoManagerCheckpointNotification
|
||||
* unless an undo is currently in progress. It posts an
|
||||
* unless an undo is currently in progress or this is begiinng a
|
||||
* top level group. It posts an
|
||||
* NSUndoManagerDidOpenUndoGroupNotification upon creating the grouping.
|
||||
*/
|
||||
- (void) beginUndoGrouping
|
||||
{
|
||||
PrivateUndoGroup *parent;
|
||||
|
||||
if (_isUndoing == NO)
|
||||
if (_isUndoing == NO && _group != nil)
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
postNotificationName: NSUndoManagerCheckpointNotification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue