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
This commit is contained in:
parent
9733a9806f
commit
0fc97a1177
@ -2428,7 +2428,6 @@ void ui_menu_add_document_items_sorted(GtkMenu *menu, GeanyDocument *active,
|
|||||||
/* copy the documents_array into the new one */
|
/* copy the documents_array into the new one */
|
||||||
foreach_document(i)
|
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 */
|
/* and now sort it */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user