Skip to content
Permalink
Browse files

Remember last used directory when saving map as PDF

  • Loading branch information
nirvn committed May 30, 2018
1 parent ab04e0f commit 0a3bef1bc98bcc96ac8136071ba8e565e12cf60b
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsmapsavedialog.cpp
@@ -434,6 +434,8 @@ void QgsMapSaveDialog::onAccepted()
QString fileName = QFileDialog::getSaveFileName( QgisApp::instance(), tr( "Save Map As" ), lastUsedDir, tr( "PDF Format" ) + " (*.pdf *.PDF)" );
if ( !fileName.isEmpty() )
{
settings.setValue( QStringLiteral( "UI/lastSaveAsImageDir" ), QFileInfo( fileName ).absolutePath() );

QgsMapSettings ms = QgsMapSettings();
applyMapSettings( ms );

0 comments on commit 0a3bef1

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