Skip to content

Commit

Permalink
Remember last used directory when saving map as PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed May 30, 2018
1 parent ab04e0f commit 0a3bef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsmapsavedialog.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 0a3bef1

Please sign in to comment.