Molecular Modeling Software
リビジョン | 7de10cf59547bddb1d0401682767ccc2f6b6069f (tree) |
---|---|
日時 | 2014-10-01 01:00:03 |
作者 | toshinagata1964 <toshinagata1964@a2be...> |
コミッター | toshinagata1964 |
Molecule#on_modified is not called when undo is disabled
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@575 a2be9bc6-48de-4e38-9406-05402d4bc13c
@@ -532,7 +532,9 @@ MyDocument::OnDocumentModified(wxCommandEvent& event) | ||
532 | 532 | MoleculeClearModifyCount(GetMainView()->mol); |
533 | 533 | |
534 | 534 | /* Call modified handler in the Ruby world */ |
535 | - MolActionCreateAndPerform(mol, SCRIPT_ACTION(""), "on_modified"); | |
535 | + /* (Does not if undo is disabled --- e.g. during loading structure) */ | |
536 | + if (isUndoEnabled) | |
537 | + MolActionCreateAndPerform(mol, SCRIPT_ACTION(""), "on_modified"); | |
536 | 538 | |
537 | 539 | event.Skip(); // Also pass to other notification handlers |
538 | 540 | UpdateModifyFlag(); |