From 0339e90e54538e916203418737f7022804ea835e Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Wed, 6 Dec 2017 21:29:38 +0000 Subject: [PATCH] Fix problems in save file --- app/PlaYUVerApp.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/PlaYUVerApp.cpp b/app/PlaYUVerApp.cpp index fa80349..0121d6a 100644 --- a/app/PlaYUVerApp.cpp +++ b/app/PlaYUVerApp.cpp @@ -275,7 +275,16 @@ QStringList PlaYUVerApp::showFileDialog( Bool bRead ) QStringList filter; filter << supported << formatsList << tr( "All Files (*)" ); - QStringList fileNameList = QFileDialog::getOpenFileNames( this, tr( "Open File" ), m_cLastOpenPath, filter.join( ";;" ) ); + QStringList fileNameList; + if( bRead ) + { + fileNameList = QFileDialog::getOpenFileNames( this, tr( "Open File" ), m_cLastOpenPath, filter.join( ";;" ) ); + } + else + { + QString fileName = QFileDialog::getSaveFileName( this, tr( "Open File" ), m_cLastOpenPath, filter.join( ";;" ) ); + fileNameList.append( fileName ); + } return fileNameList; }