Revision: 15424
http://sourceforge.net/p/skim-app/code/15424
Author: hofman
Date: 2025-06-10 16:05:15 +0000 (Tue, 10 Jun 2025)
Log Message:
-----------
don't bother disabling undo registration when no widgets to change
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2025-06-10 15:59:04 UTC (rev 15423)
+++ trunk/SKMainWindowController.m 2025-06-10 16:05:15 UTC (rev 15424)
@@ -2162,9 +2162,11 @@
}
}
- [[[self document] undoManager] disableUndoRegistration];
+ if (placeholderWidgetProperties)
+ [[[self document] undoManager] disableUndoRegistration];
[self changeWidgetsFromDictionaries:placeholderWidgetProperties];
- [[[self document] undoManager] enableUndoRegistration];
+ if (placeholderWidgetProperties)
+ [[[self document] undoManager] enableUndoRegistration];
placeholderWidgetProperties = nil;
if (wasLocked) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit