]> git.lyx.org Git - features.git/blobdiff - src/lyxfunc.C
Converter patch from Dekel, Preference patch from Angus, menu patch from Rob
[features.git] / src / lyxfunc.C
index 9a78e888604732f03d25e223304cf6a4d5372a8c..720624e6f0052ae1ca36bdb66fae41af4a80c593 100644 (file)
@@ -351,9 +351,6 @@ LyXFunc::func_status LyXFunc::getStatus(int ac) const
                        !Exporter::IsExportable(buf, argument);
                break;
 #endif
-       case LFUN_IMPORT:
-               disable = !Importer::IsImportable(argument);
-               break;
        case LFUN_UNDO:
                disable = buf->undostack.empty();
                break;
@@ -3156,8 +3153,7 @@ void LyXFunc::doImport(string const & argument)
                                        AddPath(system_lyxdir, "examples"));
                string text = _("Select ") + formats.PrettyName(format)
                        + _(" file to import");
-               string format2 = (format == "textparagraph") ? "text" : format;
-               string extension = "*." + formats.Extension(format2);
+               string extension = "*." + formats.Extension(format);
                filename = fileDlg.Select(text, initpath, extension);
                AllowInput(owner->view());