Minor bug fix when saving: the current window was set as null during save file operation

This commit is contained in:
jfmcarreira committed 2014-10-02 16:46:53 +01:00
1 parent 43fcb09eff
commit b3b4cf6780
1 file changed
+2 -1
+2 -1
View File
@@ -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 ) );