From b3b4cf678046540fe98edb54475225a09115ba5a Mon Sep 17 00:00:00 2001 From: J Carreira Date: Thu, 2 Oct 2014 16:46:53 +0100 Subject: [PATCH] Minor bug fix when saving: the current window was set as null during save file operation --- source/app/plaYUVerApp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 1c7ea0c..02c4d8d 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -231,6 +231,7 @@ Void plaYUVerApp::save() { if( m_pcCurrentSubWindow ) { + SubWindowHandle *saveWindow = m_pcCurrentSubWindow; QString supported = tr( "Supported Files (" ); QStringList formatsList; QStringList formatsExt = PlaYUVerStream::supportedSaveFormatsExt(); @@ -259,7 +260,7 @@ Void plaYUVerApp::save() if( !fileName.isEmpty() ) { m_cLastOpenPath = QFileInfo( fileName ).path(); - if( !m_pcCurrentSubWindow->save( fileName ) ) + if( !saveWindow->save( fileName ) ) { QApplication::restoreOverrideCursor(); QMessageBox::warning( this, tr( "plaYUVer" ), tr( "Cannot save file %1" ).arg( fileName ) );