fix checking for a file before try to open it

This commit is contained in:
jfmcarreira committed 2014-12-10 22:42:49 +00:00
1 parent 5510355f95
commit 4dce7f0dab
1 file changed
+1
+1
View File
@@ -158,6 +158,7 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* pStreamInfo )
if( !QFileInfo( fileName ).exists() ) if( !QFileInfo( fileName ).exists() )
{ {
statusBar()->showMessage( "File do not exists!" ); statusBar()->showMessage( "File do not exists!" );
return;
} }
SubWindowHandle *interfaceChild = plaYUVerApp::findSubWindow( mdiArea, fileName ); SubWindowHandle *interfaceChild = plaYUVerApp::findSubWindow( mdiArea, fileName );