Community
Participate
Working Groups
Using the 'Restore Defaults' button on the 'C/C++ Build' window of the project properties dialog without clicking on 'OK' or 'Apply' creates problems. Test case: 1. Create a managed C/C++ executable project. 2. Add a file, call it 'main.cpp' and insert the main() routine. 3. Right-click on the project and select its properties. 4. Select 'C/C++ Build' from the list box on the left. 5. Under the 'C/C++ Compiler tree, select the 'Warnings' child. 6. Manipulate the checkboxes so that they are selected in a NON-default manner. 7. Click 'Apply'. 8. Click 'Restore Defaults'. 9. Click 'Cancel'. At this point, one would expect that the defaults would not have been persisted because the user clicked 'Cancel' and NOT 'Apply' or 'OK'. 10. Re-open the project properties and review the 'Warning' checkboxes. Note that the default values are displayed. In case it helps: 11. Click 'Cancel'. 12. Close the project. 13. Re-open the project. 14. Re-open the project properties and review the 'Warning' checkboxes. Note that the values are no longer the default values. NB: This is a problem with all of the settings under 'C/C++ Build', not just with the contents of the 'Warning' child.
Reassign to the managed build owner.
PR was targeted to the 2.0 release but not resolved, moving target to 2.1
Definitely still a problem. Milestone set for 3.0
In CDT 2.1, I added a "confirmation" dialog box when the user selects Reset Defaults. It says: ------------------------------------------------------------------------ This action will reset all of the tools in the selected configuration to their default settings. Do you want to proceed? ------------------------------------------------------------------------ The defaults are then set and saved - Cancel will not undo the Reset Defaults button. I'm not sure what you mean by steps 11 - 14. ------------------------------------------------------------------------ In case it helps: 11. Click 'Cancel'. 12. Close the project. 13. Re-open the project. 14. Re-open the project properties and review the 'Warning' checkboxes. Note that the values are no longer the default values. ------------------------------------------------------------------------ In CDT 2.1, if I continue on with these steps after step 10, in step 14, I see the default values - i.e. Restore Defaults reset the defaults and applied the changes.
Sounds like this is fixed in 2.1.