On 05/21/2012 01:57 AM, Scott Kostyshak wrote:
*From:* Richard Heck [rgh...@comcast.net]
*Sent:* Sunday, May 20, 2012 9:53 AM
>I think the GUI is accessible at this point---if use_gui is true. So
you might just try something like:
> if (use_gui)
> frontend::Alert(...);
> else
> LYXERR0(...);
>at the relevant point. If not, then we need more complex return
values from init().
The attached patch issues a GUI message if configure fails. I wasn't
sure about where to put the code. It is unfortunately spread out
because I couldn't issue a GUI message at the time of checking if
configure succeeded.
The patch also includes two minor changes to the reconfigure code in
GuiApplication::reconfigure:
(1) I "consted" the return value and (2) I added a line break to the
message.
OK, I see the problem.
That said, the error message is wrong. If there were no text classes,
then we would have told the user this at the beginning of
LyX:execCommands(). I guess the question, then, is: If initial
configuration failed, what do we have or not have?
Richard