From: Leon W. <moo...@us...> - 2004-12-04 08:24:07
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26803 Modified Files: AnyEditDoc.cpp Log Message: Bugfix: Project settings and ClassView weren't correcly updated when using Add To Project on Saving. Index: AnyEditDoc.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/AnyEditDoc.cpp,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** AnyEditDoc.cpp 3 Dec 2004 06:46:12 -0000 1.47 --- AnyEditDoc.cpp 4 Dec 2004 08:23:57 -0000 1.48 *************** *** 822,825 **** --- 822,830 ---- AfxMessageBox("The file could not be added to the project", MB_ICONWARNING|MB_OK); } + else + { + UpdateProjectFile(); + ((CMainFrame*)AfxGetMainWnd())->GetWorkspaceBar()->GetClassTree()->OnDocFocus(this); + } } return TRUE; *************** *** 891,896 **** AfxMessageBox("The file could not be added to the project", MB_ICONWARNING|MB_OK); } ! ! /// \todo Remove old file from project } ::DeleteFile(strOldPathName); --- 896,904 ---- AfxMessageBox("The file could not be added to the project", MB_ICONWARNING|MB_OK); } ! else ! { ! UpdateProjectFile(); ! ((CMainFrame*)AfxGetMainWnd())->GetWorkspaceBar()->GetClassTree()->OnDocFocus(this); ! } } ::DeleteFile(strOldPathName); |