Navigation Menu

Skip to content

Commit

Permalink
Fix for problems in composer image export dialog (ticket 1304)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9299 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 11, 2008
1 parent 284902a commit 8552d60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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 );
Expand All @@ -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] ) );
Expand Down

0 comments on commit 8552d60

Please sign in to comment.