Update of /cvsroot/anyedit/AnyEditv2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5582
Modified Files:
OutputBar.cpp
Log Message:
File Access Time (and file attributes) are checked for the active document after running a tool. The tool could change a file or it's attributes externally.
Index: OutputBar.cpp
===================================================================
RCS file: /cvsroot/anyedit/AnyEditv2/OutputBar.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** OutputBar.cpp 30 Sep 2004 13:12:40 -0000 1.23
--- OutputBar.cpp 12 Oct 2004 08:47:55 -0000 1.24
***************
*** 314,317 ****
--- 314,326 ----
}
+ // 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;
}
|