• R/O
  • HTTP
  • SSH
  • HTTPS

Molby: コミット

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

変更サマリ

差分

--- a/wxSources/MyDocument.cpp
+++ b/wxSources/MyDocument.cpp
@@ -532,7 +532,9 @@ MyDocument::OnDocumentModified(wxCommandEvent& event)
532532 MoleculeClearModifyCount(GetMainView()->mol);
533533
534534 /* 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");
536538
537539 event.Skip(); // Also pass to other notification handlers
538540 UpdateModifyFlag();
旧リポジトリブラウザで表示