Skip to content

Commit

Permalink
fix freebsd build (fixes #12105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 17, 2015
1 parent b087853 commit 1c3472a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgisgui.cpp
Expand Up @@ -137,6 +137,7 @@ namespace QgisGui
settings.setValue( "/UI/lastSaveAsImageDir", QFileInfo( outputFileName ).absolutePath() );
}
#else

//create a file dialog using the filter list generated above
QScopedPointer<QFileDialog> fileDialog( new QFileDialog( theParent, theMessage, initialPath, QStringList( filterMap.keys() ).join( ";;" ) ) );

Expand All @@ -145,9 +146,9 @@ namespace QgisGui
fileDialog->setAcceptMode( QFileDialog::AcceptSave );
fileDialog->setConfirmOverwrite( true );

if ( !lastUsedFilter.isEmpty() ) // set the filter to the last one used
if ( !selectedFilter.isEmpty() ) // set the filter to the last one used
{
fileDialog->selectNameFilter( lastUsedFilter );
fileDialog->selectNameFilter( selectedFilter );
}

//prompt the user for a fileName
Expand Down

0 comments on commit 1c3472a

Please sign in to comment.