Kaydet (Commit) 75ffeadb authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#33598 don't show filter list if there is only one filter

Change-Id: If31787ed84157cfb1c28710277fba747f96adc8d
üst c69b48a4
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment