// It is dangerous to do this in the child,
// but safe in the parent, so...
if (pid == -1)
- bv_.owner()->message(_("Autosave failed!"));
+ // emit message signal.
+ bv_.buffer()->message(_("Autosave failed!"));
}
}
if (pid == 0) { // we are the child so...
return;
}
- bv->owner()->message(_("Autosaving current document..."));
+ // emit message signal.
+ bv->buffer()->message(_("Autosaving current document..."));
// create autosave filename
string fname = bv->buffer()->filePath();
// reconfigure the automatic settings.
void reconfigure(BufferView * bv)
{
- bv->owner()->message(_("Running configure..."));
+ // emit message signal.
+ bv->buffer()->message(_("Running configure..."));
// Run configure in user lyx directory
Path p(package().user_support());
Systemcall one;
one.startscript(Systemcall::Wait, configure_command);
p.pop();
- bv->owner()->message(_("Reloading configuration..."));
+ // emit message signal.
+ bv->buffer()->message(_("Reloading configuration..."));
lyxrc.read(libFileSearch(string(), "lyxrc.defaults"));
// Re-read packages.lst
LaTeXFeatures::getAvailable();