SVN 13598 windows 10 64 bits
Step to reproduce :
-- In settings\compiler dialogue choose a compiler with many personal configuration datas .(or at least one in compiler defines to check it)
-- click on "Rename" button to rename it with a new name .
-- close the dialogue with ok
-- save everything in codeblocks
-- close codeblocks
-- reopen codeblocks
-- reopen the settings\compiler dialogue
-- check your renamed compiler
-- all datas have been erased , the compiler is cleared .
Patch added
In compileroptionsdlg.cpp , i have changed some array indexes by pointers , its easyer to deal directly with pointers than with indexes on pointers array and requires less updates .That's why , i have made many changes in this file .
For precisions , this bug happens only on compilers that have been copied from original installed compilers in codeblocks .
eg "Copy of GNU GCC Compiler" . Renaming "Copy of GNU GCC Compiler" to "Copy of GNU GCC2 Compiler" will delete all its personal configuration datas .
compilergcc.patch introduces a new issue when renaming built-in compilers .
I made changes in CompilerOptionsDlg::OnEditCompilerClick .
This issue is fixed .
Last edit: homertp 2024-12-21
Safer test on default compiler in CompilerOptionsDlg::OnEditCompilerClick before removing it from CompilerFactory .
Small changes in CompilerOptionsDlg::OnEditCompilerClick .
compilergcc3.patch replaces compilergcc.patch .
Last edit: homertp 2024-12-21