Skip to content

Commit

Permalink
Fix FreeBSD build
Browse files Browse the repository at this point in the history
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 71b9c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsguiutils.cpp
Expand Up @@ -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() );

Expand Down

0 comments on commit 71b9c77

Please sign in to comment.