* 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,6 +215,9 @@ void Dialogs::updateBufferDependent(bool switched) const
for(; it != end; ++it) { for(; it != end; ++it) {
Dialog * dialog = it->second.get(); Dialog * dialog = it->second.get();
if (switched && dialog->controller().isBufferDependent()) { if (switched && dialog->controller().isBufferDependent()) {
if (dialog->controller().initialiseParams(""))
dialog->view().update();
else
dialog->hide(); dialog->hide();
} else { } else {
// A bit clunky, but the dialog will request // A bit clunky, but the dialog will request