From: Leon W. <moo...@us...> - 2005-11-01 19:35:06
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8677 Modified Files: OutputBar.cpp Log Message: Updated last access time check after tool is finished to work faster. Index: OutputBar.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/OutputBar.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** OutputBar.cpp 31 Jan 2005 22:55:43 -0000 1.26 --- OutputBar.cpp 1 Nov 2005 19:34:54 -0000 1.27 *************** *** 320,331 **** // Check the access settings of the active document. A tool could change it. ! if( NULL != theApp.GetMainFrameWnd() ) { - CDocument* pDocument = theApp.GetMainFrameWnd()->GetActiveDocument(); - if( NULL == pDocument || !pDocument->IsKindOf( RUNTIME_CLASS( CAnyEditDoc ) ) ) return 0; ((CAnyEditDoc*)pDocument)->CheckLastAccessTime(); } - return 0; } --- 320,329 ---- // Check the access settings of the active document. A tool could change it. ! CDocument* pDocument = theApp.GetCurrentDoc(); ! if( NULL != pDocument && pDocument->IsKindOf( RUNTIME_CLASS( CAnyEditDoc ) ) ) { ((CAnyEditDoc*)pDocument)->CheckLastAccessTime(); } return 0; } |