Bo Peng wrote:
I don't really understand this. The registered file will get its enabled
status when it's constructed:
EmbeddedFile::EmbeddedFile(std::string const & file,
std::string const & inzipName, bool embed, Buffer const & buf)
: DocFileName("", false), inzip_name_(inzipName), inset_list_()
{
DocFileName::set(file, buf.filePath());
setEmbed(embed);
enable(buf.embedded(), &buf, true);
}
And then it will have whatever status it has. Why should InsetBibtex
need to know about that? It doesn't store the information in the LyX
file or use it in any way.
Ohmm, this is your addition, right? Calling enable without a try/catch
block is dangerous because enable(...., true) asks to copy files
around, which may fail and fire an exception.
OK.
rh