Remove inexact and unnecessary warning if a Run command has failed.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3026 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-09-30 20:30:38 +00:00
parent 040e4391c7
commit 9b05011c20
2 changed files with 3 additions and 6 deletions

View File

@ -4,6 +4,8 @@
Fix a few memleaks. Fix a few memleaks.
Handle errors when creation of the project base directory fails. Handle errors when creation of the project base directory fails.
Update the window title also when creating new projects. Update the window title also when creating new projects.
* src/build.c:
Remove inexact and unnecessary warning if a Run command has failed.
2008-09-29 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2008-09-29 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -703,9 +703,7 @@ static GPid build_run_cmd(GeanyDocument *doc)
working_dir = prepare_run_script(doc, &vte_cmd_nonscript); working_dir = prepare_run_script(doc, &vte_cmd_nonscript);
if (working_dir == NULL) if (working_dir == NULL)
{
return (GPid) 0; return (GPid) 0;
}
run_info.file_type_id = FILETYPE_ID(doc->file_type); run_info.file_type_id = FILETYPE_ID(doc->file_type);
@ -2016,10 +2014,7 @@ on_build_execute_activate (GtkMenuItem *menuitem,
strstr(ft->programs->run_cmd, "%f") != NULL) strstr(ft->programs->run_cmd, "%f") != NULL)
document_save_file(doc, FALSE); document_save_file(doc, FALSE);
if (build_run_cmd(doc) == (GPid) 0) build_run_cmd(doc);
{
ui_set_statusbar(TRUE, _("Failed to execute the terminal program"));
}
} }
} }