[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Information on PCB



On 10/23/09, Kai-Martin Knaak <kmk@xxxxxxxxxxxxxxx> wrote:
> diff --git a/src/main.c b/src/main.c
> index a0b38f3..bdcb4c6 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -966,6 +966,19 @@ main (int argc, char *argv[])
>        LayerStringToLayerStack (Settings.InitialLayerStack);
>      }
>
> +  if (Settings.ScriptFilename)
> +    {
> +      Message (_("Executing startup script file %s\n"),
> +	       Settings.ScriptFilename);
> +      hid_actionl ("ExecuteFile", Settings.ScriptFilename, NULL);
> +    }
> +
> +  if (Settings.ActionString)
> +    {
> +      Message (_("Executing startup action %s\n"),
> Settings.ActionString);
> +      hid_parse_actions (Settings.ActionString, 0);
> +    }
> +
>    if (gui->printer || gui->exporter)
>      {
>        gui->do_export (0);
> @@ -998,18 +1011,6 @@ main (int argc, char *argv[])
>     */
>    Settings.init_done = 0;
>
> -  if (Settings.ScriptFilename)
> -    {
> -      Message (_("Executing startup script file %s\n"),
> -	       Settings.ScriptFilename);
> -      hid_actionl ("ExecuteFile", Settings.ScriptFilename, NULL);
> -    }
> -  if (Settings.ActionString)
> -    {
> -      Message (_("Executing startup action %s\n"),
> Settings.ActionString);
> -      hid_parse_actions (Settings.ActionString, 0);
> -    }
> -
>    if (Settings.init_done == 0)
>      {
>        Settings.init_done = 1;

Please consider removing Settings.init_done.

Regards,
Ineiev


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user