summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-02-03 23:58:31 +0100
committerMichael Stahl <mstahl@redhat.com>2014-02-04 00:10:00 +0100
commitff5ad7e379315faa3f4afa009d23f34c7d231d9a (patch)
tree276659a2c1dca3f55263dc3d4bbdef139d10f8e0
parenta40d3f3686eccf604333ad8ed2ac4442d44720de (diff)
fdo#44270: vcl: GTK+ file picker: fix non-grouped filter patterns
lcl_CreateAutoMarkFileDlg calls appendFilter() with "... (*.sdi)" and the GTK+ file picker then strips off the (*.sdi) in the string given to GTK+ and then doesn't compare result properly with its stored filters; only filters added with appendFilterGroup() work but not appendFilter() ones. Change-Id: I0ac9272b5606ff8b81f0c14160fc6972789bb1ea
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index dc9c889849c7..372b8bf0c204 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -521,7 +521,8 @@ namespace {
sal_Bool bMatch;
if( !_rEntry.hasSubFilters() )
// a real filter
- bMatch = ( _rEntry.getTitle() == rTitle );
+ bMatch = (_rEntry.getTitle() == rTitle)
+ || (shrinkFilterName(_rEntry.getTitle()) == rTitle);
else
// a filter group -> search the sub filters
bMatch =