Skip to content
Permalink
Browse files

fix #4024

  • Loading branch information
jef-n committed Jul 15, 2011
1 parent 2e7cb7b commit e576c9a01b360319fa72b2845f511a6468ed7292
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/composer/qgscomposer.cpp
@@ -525,6 +525,7 @@ void QgsComposer::on_mActionExportAsPDF_triggered()
file.path(), tr( "PDF Format" ) + " (*.pdf *PDF)" );
myQFileDialog->selectFile( file.fileName() );
myQFileDialog->setFileMode( QFileDialog::AnyFile );
myQFileDialog->setConfirmOverwrite( true );
myQFileDialog->setAcceptMode( QFileDialog::AcceptSave );

int result = myQFileDialog->exec();
@@ -733,6 +734,7 @@ void QgsComposer::on_mActionExportAsImage_triggered()
);

myQFileDialog->setFileMode( QFileDialog::AnyFile );
myQFileDialog->setConfirmOverwrite( true );

// set the filter to the last one used
myQFileDialog->selectFilter( myLastUsedFilter );
@@ -834,6 +836,7 @@ void QgsComposer::on_mActionExportAsSVG_triggered()
file.path(), tr( "SVG Format" ) + " (*.svg *SVG)" );
myQFileDialog->selectFile( file.fileName() );
myQFileDialog->setFileMode( QFileDialog::AnyFile );
myQFileDialog->setConfirmOverwrite( true );
myQFileDialog->setAcceptMode( QFileDialog::AcceptSave );

int result = myQFileDialog->exec();

0 comments on commit e576c9a

Please sign in to comment.
You can’t perform that action at this time.