- else if (backend_format == format)
- buffer->makeLaTeXFile(filename, string(), true);
- else if (contains(buffer->filepath, ' ')) {
- WriteAlert(_("Cannot run latex."),
- _("The path to the lyx file cannot contain spaces."));
+ else if (backend_format == format) {
+ runparams.nice = true;
+ buffer->makeLaTeXFile(filename, string(), runparams);
+ } else if (contains(buffer->filePath(), ' ')) {
+ Alert::error(_("File name error"),
+ _("The directory path to the document cannot contain spaces."));