Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv8986/src

Modified Files:
        Project.cpp 
Log Message:
-Check for unsupported extensions before trying to open file of unknown type.

Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.321
retrieving revision 1.322
diff -u -d -r1.321 -r1.322
--- Project.cpp 9 Aug 2007 03:25:11 -0000       1.321
+++ Project.cpp 22 Aug 2007 15:48:58 -0000      1.322
@@ -2490,7 +2490,7 @@
 {
    Track **newTracks;
    int numTracks;
-   wxString errorMessage;
+   wxString errorMessage=wxT("");
 
    mUserCanceledProgress = false;
 
@@ -2517,7 +2517,7 @@
       return;
    }
 
-   if (numTracks <= 0) {
+   if (!errorMessage.IsEmpty()) {
 // Old code, without the help button.
 #if 0
       wxMessageBox(errorMessage,
@@ -2526,8 +2526,9 @@
 #endif    
           ShowErrorDialog(this, _("Error importing"),
                                          errorMessage, 
wxT("http://audacity.sourceforge.net/help/faq?s=files&i=wma-proprietary";));     
-      return;
    }
+   if( numTracks<=0)
+      return;
 
    // for LOF ("list of files") files, do not import the file as if it
    // were an audio file itself


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to