Patch #2893 2009-12-30 23:33

techy

Nice and cute patch
Download
2893-Nice_and_cute.patch (847 bytes)
Category
Application::Refinement
Status
Accepted
Close date
2009-12-31 17:02
Assigned to
mortenmacfly
Index: /home/techy/Downloads/codeblocks/trunk/src/sdk/projectmanager.cpp
===================================================================
--- /home/techy/Downloads/codeblocks/trunk/src/sdk/projectmanager.cpp    (revision 5987)
+++ /home/techy/Downloads/codeblocks/trunk/src/sdk/projectmanager.cpp    (working copy)
@@ -2038,9 +2038,12 @@
             ++i;
     }
 
-    // ask the user which files to add
-// TODO (mandrav#1#): Make these masks configurable
-    wxString wild = _T("*.c;*.cc;*.cpp;*.cxx;*.h;*.hh;*.hpp;*.hxx;*.inl;*.rc;*.xrc");
+    wxString wild;
+    for (unsigned i = 0; i < m_pFileGroups->GetGroupsCount(); i++)
+    {
+        wild += m_pFileGroups->GetFileMasks(i);
+    }
+    
     MultiSelectDlg dlg(0, array, wild, _("Select the files to add to the project:"));
     PlaceWindow(&dlg);
     if (dlg.ShowModal() != wxID_OK)
techy 2009-12-30 23:35

I like this patch - it's small, useful, removes TODO and was easy to do :-).