Fix for problems in composer image export dialog (ticket 1304)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9299 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2008-09-11 12:44:47 +00:00
parent b941cf3942
commit 5c7effa937

View File

@ -926,10 +926,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
myFilters
)
);
myQFileDialog->selectFile( file.fileName() );
// allow for selection of more than one file
myQFileDialog->setFileMode( QFileDialog::AnyFile );
myQFileDialog->setFileMode(QFileDialog::AnyFile);
// set the filter to the last one used
myQFileDialog->selectFilter( myLastUsedFilter );
@ -948,7 +946,8 @@ void QgsComposer::on_mActionExportAsImage_activated( void )
return;
}
myOutputFileNameQString = myQFileDialog->selectedFiles().first();
myOutputFileNameQString = myQFileDialog->selectedFiles().last();
qWarning(myOutputFileNameQString.toLocal8Bit().data());
QString myFilterString = myQFileDialog->selectedFilter();
QgsDebugMsg( QString( "Selected filter: %1" ).arg( myFilterString ) );
QgsDebugMsg( QString( "Image type: %1" ).arg( myFilterMap[myFilterString] ) );