* frontends/Dialogs::updateBufferDependent()

- update dialogs instead of hiding for dialogs that support that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17414 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-03-12 11:27:47 +00:00
parent bf61ecc2de
commit 93211e0f3c

View File

@ -215,7 +215,10 @@ void Dialogs::updateBufferDependent(bool switched) const
for(; it != end; ++it) {
Dialog * dialog = it->second.get();
if (switched && dialog->controller().isBufferDependent()) {
dialog->hide();
if (dialog->controller().initialiseParams(""))
dialog->view().update();
else
dialog->hide();
} else {
// A bit clunky, but the dialog will request
// that the kernel provides it with the necessary