[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Tue Oct 21 07:01:40 PDT 2014
vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 75ffeadb55a6c422fb246bfee3870d9035d250e2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Oct 21 15:00:46 2014 +0100
Related: fdo#33598 don't show filter list if there is only one filter
Change-Id: If31787ed84157cfb1c28710277fba747f96adc8d
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index 2792982..c5b43b2 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -1971,7 +1971,8 @@ void SalGtkFilePicker::SetFilters()
}
}
- if (gtk_tree_model_iter_n_children(GTK_TREE_MODEL(m_pFilterStore), NULL)) //If m_pFilterStore is not empty
+ // Hide the expander if there's no choice to be made there
+ if (gtk_tree_model_iter_n_children(GTK_TREE_MODEL(m_pFilterStore), NULL) > 1)
gtk_widget_show( m_pFilterExpander );
else
gtk_widget_hide( m_pFilterExpander );
More information about the Libreoffice-commits
mailing list