Don't set the sort column when there is no model

We can't set the sort column when we load the GtkFileChooser's settings, as the
file models may not have been created yet.  Wait until the models are actually
present; then we can set the sort column.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Federico Mena Quintero 2009-06-17 20:33:57 -05:00
parent 1a385c50f0
commit 3c75004474

View File

@ -6114,7 +6114,10 @@ settings_load (GtkFileChooserDefault *impl)
impl->sort_column = sort_column;
impl->sort_order = sort_order;
set_sort_column (impl);
/* We don't call set_sort_column() here as the models may not have been
* created yet. The individual functions that create and set the models will
* call set_sort_column() themselves.
*/
}
static void