> Author: sanda > Date: Sun Jan 20 00:36:03 2008 > New Revision: 22633 > > URL: http://www.lyx.org/trac/changeset/22633 > Log: > Environment toolbar is not updated after selection by mouse. > > Modified: lyx-devel/trunk/src/frontends/qt4/GuiToolbar.cpp > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiToolbar.cpp?rev=22633 > ============================================================================== > --- lyx-devel/trunk/src/frontends/qt4/GuiToolbar.cpp (original) > +++ lyx-devel/trunk/src/frontends/qt4/GuiToolbar.cpp Sun Jan 20 00:36:03 2008 > @@ -348,6 +348,7 @@ > FuncRequest::TOOLBAR); > theLyXFunc().setLyXView(&owner_); > lyx::dispatch(func); > + updateContents(false); > return; > } > }
btw i wonder whats the purpose of updateContents(false); in the begining of the GuiLayoutBox::selected: void GuiLayoutBox::selected(const QString & str) { owner_.setFocus(); updateContents(false); if (!text_class_) return; docstring const name = qstring_to_ucs4(str); TextClass::const_iterator it = text_class_->begin(); TextClass::const_iterator const end = text_class_->end(); for (; it != end; ++it) { docstring const & itname = (*it)->name(); if (translateIfPossible(itname) == name) { FuncRequest const func(LFUN_LAYOUT, itname, FuncRequest::TOOLBAR); theLyXFunc().setLyXView(&owner_); lyx::dispatch(func); updateContents(false); return; } } lyxerr << "ERROR (layoutSelected): layout not found!" << endl; } pavel