Kaydet (Commit) 0fc97a11 authored tarafından Nick Treleaven's avatar Nick Treleaven

Remove check for documents[i]->is_valid as foreach_document(i) already does this (oops).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5720 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 9733a980
......@@ -2428,8 +2428,7 @@ void ui_menu_add_document_items_sorted(GtkMenu *menu, GeanyDocument *active,
/* copy the documents_array into the new one */
foreach_document(i)
{
if (documents[i]->is_valid)
g_ptr_array_add(sorted_documents, documents[i]);
g_ptr_array_add(sorted_documents, documents[i]);
}
/* and now sort it */
if (compare_func != NULL)
......
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