Add error message for failed imports.

This commit is contained in:
Jonathan Moore Liles 2008-04-14 21:06:35 -05:00
parent 6f0af6bf3f
commit 7e28987f99
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include "Audio_Track.H" #include "Audio_Track.H"
#include <Fl/fl_ask.H>
static static
void void
@ -94,6 +95,7 @@ Audio_Track::handle ( int m )
if ( ! c ) if ( ! c )
{ {
fl_alert( "Could not import file \"%s\": Unsupported file type.", file );
printf( "could not open file\n" ); printf( "could not open file\n" );
free( file ); free( file );
return 0; return 0;