From 98bf2379a6738cafa17434f23e01fdda46095960 Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Mon, 2 Feb 2015 13:53:21 -0500 Subject: [PATCH] Remove erroneous use of QFileDialog::selectNameFilter(). No filters are to be selected. The argument selectedFilter is a pointer to a String to receive the filter selected/used by the user. --- src/QGCFileDialog.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/QGCFileDialog.cc b/src/QGCFileDialog.cc index b3cb51805..b8ad69832 100644 --- a/src/QGCFileDialog.cc +++ b/src/QGCFileDialog.cc @@ -101,9 +101,6 @@ QString QGCFileDialog::getSaveFileName(QWidget* parent, { QFileDialog dlg(parent, caption, dir, filter); dlg.setAcceptMode(QFileDialog::AcceptSave); - if (selectedFilter) { - dlg.selectNameFilter(*selectedFilter); - } if (options) { dlg.setOptions(options); } -- 2.22.0