mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
b941cf3942
commit
5c7effa937
@ -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] ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user