From 7e44308626790c0e8d8dd42537b378d16121a6da Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 18 Dec 2017 23:28:17 +0000 Subject: [PATCH] Fix bug when no file is given when saving a module --- app/ModulesHandle.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/ModulesHandle.cpp b/app/ModulesHandle.cpp index f482787..05c6080 100644 --- a/app/ModulesHandle.cpp +++ b/app/ModulesHandle.cpp @@ -508,7 +508,10 @@ Void ModulesHandle::applyAllModuleIf( PlaYUVerAppModuleIf* pcCurrModuleIf ) filter << supported << formatsList << tr( "All Files (*)" ); QString fileName = QFileDialog::getSaveFileName( m_pcParent, tr( "Open File" ), QString(), filter.join( ";;" ) ); - + if( fileName.isEmpty() ) + { + return; + } Width = pcCurrModuleIf->m_pcProcessedFrame->getWidth(); Height = pcCurrModuleIf->m_pcProcessedFrame->getHeight(); InputFormat = pcCurrModuleIf->m_pcProcessedFrame->getPelFormat();