Skip to content
Permalink
Browse files

Fix FreeBSD build

On FreeBSD, I need to change `selectedFilter = fileDialog-
>selectedFilter();` to `selectedFilter = fileDialog-
>selectedNameFilter();`

I think it's a reliquat of Qt4 since Qt5 doesn't have this method
anymore.
  • Loading branch information
lbartoletti committed Nov 5, 2017
1 parent ff2a53c commit 71b9c77b907ab3912cea15abc2fde1e11c36689d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsguiutils.cpp
@@ -158,7 +158,7 @@ namespace QgsGuiUtils
outputFileName = fileDialog->selectedFiles().first();
}

selectedFilter = fileDialog->selectedFilter();
selectedFilter = fileDialog->selectedNameFilter();
QgsDebugMsg( "Selected filter: " + selectedFilter );
ext = filterMap.value( selectedFilter, QString() );

0 comments on commit 71b9c77

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