This will disable the layout box if no document is open, and it will set the correct state of the toolbar toggling buttons.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39694
a592a061-630c-0410-9148-
cb99ea01b6c8
// No work area, switch to the background widget.
d.setBackground();
// No work area, switch to the background widget.
d.setBackground();
QMainWindow::showEvent(e);
}
QMainWindow::showEvent(e);
}
= theConverters().importableFormats();
vector<const Format *>::const_iterator it = import_formats.begin();
for (; it != import_formats.end(); ++it)
= theConverters().importableFormats();
vector<const Format *>::const_iterator it = import_formats.begin();
for (; it != import_formats.end(); ++it)
- if ((*it)->hasExtension(ext))
+ if ((*it)->extension() == ext)
found_formats.push_back(*it);
FuncRequest cmd;
found_formats.push_back(*it);
FuncRequest cmd;
toqstr(addPath(package().system_support().absFileName(), "examples")));
docstring filter = formats.prettyName(format);
toqstr(addPath(package().system_support().absFileName(), "examples")));
docstring filter = formats.prettyName(format);
- filter += from_utf8(formats.extensions(format));
- filter += "})";
+ filter += from_utf8(formats.extension(format));
+ filter += ')';
FileDialog::Result result =
dlg.open(toqstr(initpath), fileFilters(toqstr(filter)));
FileDialog::Result result =
dlg.open(toqstr(initpath), fileFilters(toqstr(filter)));