Fix segfault on Tools->Reload Configuration when no documents are
open (#3037079). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5167 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
0f7d1928cc
commit
b8f3ce774b
@ -1,3 +1,10 @@
|
||||
2010-08-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/filetypes.c:
|
||||
Fix segfault on Tools->Reload Configuration when no documents are
|
||||
open (#3037079).
|
||||
|
||||
|
||||
2010-08-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* wscript:
|
||||
|
@ -1659,8 +1659,12 @@ void filetypes_reload(void)
|
||||
/* filetypes_load_config() will skip not loaded filetypes */
|
||||
filetypes_load_config(i, TRUE);
|
||||
}
|
||||
/* update document styling */
|
||||
|
||||
current_doc = document_get_current();
|
||||
if (!current_doc)
|
||||
return;
|
||||
|
||||
/* update document styling */
|
||||
foreach_document(i)
|
||||
{
|
||||
if (current_doc != documents[i])
|
||||
|
Loading…
x
Reference in New Issue
Block a user