Embedding: initialize enableCB checkbox correctly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20255 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-09-13 05:04:05 +00:00
parent eb04266ab9
commit 4e7fa2bfef

View File

@ -109,6 +109,7 @@ void GuiEmbeddedFilesDialog::updateView()
{ {
filesLW->clear(); filesLW->clear();
EmbeddedFiles const & files = controller_.embeddedFiles(); EmbeddedFiles const & files = controller_.embeddedFiles();
enableCB->setCheckState(files.enabled() ? Qt::Checked : Qt::Unchecked);
EmbeddedFiles::EmbeddedFileList::const_iterator it = files.begin(); EmbeddedFiles::EmbeddedFileList::const_iterator it = files.begin();
EmbeddedFiles::EmbeddedFileList::const_iterator it_end = files.end(); EmbeddedFiles::EmbeddedFileList::const_iterator it_end = files.end();
for (; it != it_end; ++it) { for (; it != it_end; ++it) {