Patch #866 2006-02-26 22:36
sethjackson
Feature Request #1878- Download
- 866-Feature_Request.patch (820 bytes)
Index: C:/CodeBlocks/src/sdk/templatemanager.cpp
===================================================================
--- C:/CodeBlocks/src/sdk/templatemanager.cpp (revision 2086)
+++ C:/CodeBlocks/src/sdk/templatemanager.cpp (working copy)
@@ -313,7 +313,12 @@
// select directory to copy user template files
wxString sep = wxFileName::GetPathSeparator();
- wxString path = ChooseDirectory(0, _("Choose a directory to create the new project"));
+ wxString path = ChooseDirectory(0,
+ _("Choose a directory to create the new project"),
+ _T(""),
+ _T(""),
+ false,
+ true);
if (path.IsEmpty())
{
return NULL;
History
This patch should do the job, but it does it only partially.
It does allow to create a new directory, which is called "New Folder", but if you change the name of that dir, in the Folrder field, things do not get updated, and eventually the project will end up in "New Folder". If you rename it in the tree, then the Folder field does not follow, unless you first select antoher dir, and the reselect your 'new dir'.
Well the wxDirDialog used when creating a new folder in the supplied project templates has the same problem. :P It is either a wxDirDialog problem or the cb implementation of it not my code.
okay,
applying the patch, will have to investigate further on the not synching so nice of the wxDirDialog.
revision 2090.
Thanks for your contribution.