Kaydet (Commit) 85306849 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix Run toolbar item sensitivity after the last document has been closed.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4943 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 58359a6d
......@@ -6,6 +6,9 @@
sensitive widgets.
* src/toolbar.c:
Fix crash when the toolbar is reloaded without any open documents.
* src/build.c:
Fix Run toolbar item sensitivity after the last document has been
closed.
2010-05-19 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
......
......@@ -1549,6 +1549,7 @@ void build_menu_update(GeanyDocument *doc)
}
}
run_sensitivity &= (doc != NULL);
can_build = get_build_cmd(doc, GEANY_GBG_FT, GBO_TO_CMD(GEANY_GBO_BUILD), NULL) != NULL
&& have_path && ! build_running;
if (widgets.toolitem_build != 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