Skip to content
Permalink
Browse files
fix freebsd build (fixes #12105)
  • Loading branch information
jef-n committed Feb 17, 2015
1 parent b087853 commit 1c3472a
Showing 1 changed file with 3 additions and 2 deletions.
@@ -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( ";;" ) ) );

@@ -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

0 comments on commit 1c3472a

Please sign in to comment.