2002-10-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+ * lyxrc.C (read): treat a viewer or converter command of "none" as
+ if it were empty.
+
+ * MenuBackend.C (expandFormats): for an update, also allow the
+ formats that are not viewable
+
* lyx_main.C (queryUserLyXDir): re-run automatically the configure
script if it is newer than the lyxrc.defaults in user directory
action = LFUN_PREVIEW;
break;
case MenuItem::UpdateFormats:
- formats = Exporter::GetExportableFormats(buf, true);
+ formats = Exporter::GetExportableFormats(buf, false);
action = LFUN_UPDATE;
break;
default:
if (lexrc.next()) {
flags = lexrc.getString();
}
- if (command.empty() || command == "none") {
+ if (command.empty()
+ || token(command, ' ', 0) == "none") {
converters.erase(from, to);
} else {
converters.add(from, to, command, flags);
}
if (lexrc.next()) {
command = lexrc.getString();
+ if (token(command, ' ', 0) == "none")
+ command.erase();
}
formats.setViewer(format, command);
break;