This lets you reshow them without having to recreate them every time.
But the point is that CodeStats keeps creating new windows without destroying or reusing them.
Yes, you are right. CodeStat is missing a dlg->Destroy() after it's EndModal();
I will submit a patch.
Thanks
pecan
If you want to fix it yourself, here's a patch
Index: codestat.cpp
===================================================================
--- codestat.cpp (revision 2750)
+++ codestat.cpp (working copy)
@@ -100,13 +100,14 @@
return -1;
}
+ int dlgReturnCode = 0; //(pecan 2006/7/16)
dlg = new CodeStatExecDlg(Manager::Get()->GetAppWindow());
// Load the language settings and launch the main function
LanguageDef languages[NB_FILETYPES_MAX];
int nb_languages = LoadSettings(languages);
if(dlg->Execute(languages,nb_languages) != 0)
- return -1;
-
- return 0;
+ dlgReturnCode = -1; //(pecan 2006/7/16)
+ dlg->Destroy(); //(pecan 2006/7/16)
+ return dlgReturnCode; //(pecan 2006/7/16)
}