Update of /cvsroot/audacity/audacity-src/src In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv7784
Modified Files: Project.cpp Log Message: Avoid duplicate entries in open dialog filters (required to work around wxGenericFileDialog bug, does nothing for other dialogs). Index: Project.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v retrieving revision 1.348 retrieving revision 1.349 diff -u -d -r1.348 -r1.349 --- Project.cpp 15 May 2008 01:25:12 -0000 1.348 +++ Project.cpp 20 May 2008 19:02:59 -0000 1.349 @@ -1681,8 +1681,10 @@ filter += f->formatName + wxT("|"); for (size_t i = 0; i < f->formatExtensions.GetCount(); i++) { - filter += wxT("*.") + f->formatExtensions[i] + wxT(";"); - all += wxT("*.") + f->formatExtensions[i] + wxT(";"); + if (!filter.Contains(wxT("*.") + f->formatExtensions[i] + wxT(";"))) + filter += wxT("*.") + f->formatExtensions[i] + wxT(";"); + if (!all.Contains(wxT("*.") + f->formatExtensions[i] + wxT(";"))) + all += wxT("*.") + f->formatExtensions[i] + wxT(";"); } filter.RemoveLast(1); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs