Fix recent files list after changing sequence configuration

This commit is contained in:
jfmcarreira committed 2015-01-13 11:30:42 +00:00
1 parent 5a1ee43505
commit c40bed1245
1 file changed
+8 -1
+8 -1
View File
@@ -325,7 +325,14 @@ Void plaYUVerApp::format()
VideoSubWindow* pcVideoSubWindow = m_pcCurrentVideoSubWindow;
try
{
pcVideoSubWindow->loadFile( pcVideoSubWindow->getCurrentFileName(), true );
if( pcVideoSubWindow->loadFile( pcVideoSubWindow->getCurrentFileName(), true ) )
{
PlaYUVerStreamInfo streamInfo = pcVideoSubWindow->getStreamInfo();
m_aRecentFileStreamInfo.prepend( streamInfo );
while( m_aRecentFileStreamInfo.size() > MAX_RECENT_FILES )
m_aRecentFileStreamInfo.remove( m_aRecentFileStreamInfo.size() - 1 );
updateRecentFileActions();
}
}
catch( const char *msg )
{