git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@575
a2be9bc6-48de-4e38-9406-
05402d4bc13c
MoleculeClearModifyCount(GetMainView()->mol);
/* Call modified handler in the Ruby world */
- MolActionCreateAndPerform(mol, SCRIPT_ACTION(""), "on_modified");
+ /* (Does not if undo is disabled --- e.g. during loading structure) */
+ if (isUndoEnabled)
+ MolActionCreateAndPerform(mol, SCRIPT_ACTION(""), "on_modified");
event.Skip(); // Also pass to other notification handlers
UpdateModifyFlag();