From 5d0bd6b434dbc824fc7d824684caeb0c02706d87 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Fri, 2 Jan 2015 15:48:51 +0000 Subject: [PATCH] Try to fix reload problems --- app/plaYUVerApp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/plaYUVerApp.cpp b/app/plaYUVerApp.cpp index 179317b..4766893 100644 --- a/app/plaYUVerApp.cpp +++ b/app/plaYUVerApp.cpp @@ -344,8 +344,7 @@ Void plaYUVerApp::reload() { if( m_pcCurrentVideoSubWindow ) { - VideoSubWindow* pcVideoSubWindow = qobject_cast( m_pcCurrentVideoSubWindow ); - pcVideoSubWindow->reloadFile(); + m_pcCurrentVideoSubWindow->reloadFile(); m_pcCurrentSubWindow = NULL; update(); } @@ -354,7 +353,6 @@ Void plaYUVerApp::reload() Void plaYUVerApp::reloadAll() { VideoSubWindow *subWindow; - QList videoSubWindowList = mdiArea->findChildren(); for( Int i = 0; i < videoSubWindowList.size(); i++ ) { @@ -364,7 +362,10 @@ Void plaYUVerApp::reloadAll() subWindow->reloadFile(); } } + m_pcCurrentSubWindow = NULL; + update(); } + Void plaYUVerApp::loadAll() { if( m_pcCurrentVideoSubWindow )