When finding the common prefix, assert that we have the correct folder loaded

Signed-off-by: Federico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=19821
This commit is contained in:
Federico Mena Quintero 2008-03-13 00:35:54 +00:00 committed by Federico Mena Quintero
parent 073093bde0
commit a6bdc59213

View File

@ -462,7 +462,9 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry,
if (!parsed)
return;
/* FIXME: assert that the current folder path is the same as the parsed path? */
g_assert (parsed_folder_path != NULL
&& chooser_entry->current_folder_path != NULL
&& gtk_file_path_compare (parsed_folder_path, chooser_entry->current_folder_path) == 0);
valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (chooser_entry->completion_store), &iter);