Update of /cvsroot/audacity/audacity-src/src/prefs In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8841/src/prefs
Modified Files: DevicePrefs.cpp Log Message: Fix a crash when we have no hosts (reported on mailing list by David Bailes) Index: DevicePrefs.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/prefs/DevicePrefs.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- DevicePrefs.cpp 16 Nov 2009 17:51:53 -0000 1.9 +++ DevicePrefs.cpp 7 Jan 2010 00:19:30 -0000 1.10 @@ -158,6 +158,10 @@ void DevicePrefs::OnHost(wxCommandEvent & e) { + // Bail if we have no hosts + if (mHostNames.size() < 1) + return; + // Find the index for the host API selected int index = -1; wxString apiName = mHostNames[mHost->GetCurrentSelection()]; ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs