diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-21 15:00:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-21 15:01:06 +0100 |
commit | 75ffeadb55a6c422fb246bfee3870d9035d250e2 (patch) | |
tree | a8f705abbc4393c613d2e60c041fafbcc85ac3eb | |
parent | c69b48a42052ff79d192ae08c8226d9454a2338e (diff) |
Related: fdo#33598 don't show filter list if there is only one filter
Change-Id: If31787ed84157cfb1c28710277fba747f96adc8d
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx index 2792982256cb..c5b43b203678 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 ); |