Skip to content

Commit 1c3472a

Browse files
committed
fix freebsd build (fixes #12105)
1 parent b087853 commit 1c3472a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gui/qgisgui.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ namespace QgisGui
137137
settings.setValue( "/UI/lastSaveAsImageDir", QFileInfo( outputFileName ).absolutePath() );
138138
}
139139
#else
140+
140141
//create a file dialog using the filter list generated above
141142
QScopedPointer<QFileDialog> fileDialog( new QFileDialog( theParent, theMessage, initialPath, QStringList( filterMap.keys() ).join( ";;" ) ) );
142143

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

148-
if ( !lastUsedFilter.isEmpty() ) // set the filter to the last one used
149+
if ( !selectedFilter.isEmpty() ) // set the filter to the last one used
149150
{
150-
fileDialog->selectNameFilter( lastUsedFilter );
151+
fileDialog->selectNameFilter( selectedFilter );
151152
}
152153

153154
//prompt the user for a fileName

0 commit comments

Comments
 (0)