Buffer const * const LyX::updateInset(Inset const * inset) const
{
- if (!inset)
+ if (quitting || !inset)
return 0;
Buffer const * buffer_ptr = 0;
void LyX::hideDialogs(std::string const & name, Inset * inset) const
{
- if (quitting)
+ if (quitting || !use_gui)
return;
vector<int> const & view_ids = pimpl_->application_->gui().viewIds();
}
}
+ // Reinit the messages machinery in case package() knows
+ // something interesting about the locale directory.
+ Messages::init();
+
if (!use_gui) {
// FIXME: create a ConsoleApplication
int exit_status = init(argc, argv);