Bugfix: no need to update if the dialog is not visible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17533 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-03-25 00:45:34 +00:00
parent 6862d3f972
commit d75143217c

View File

@ -215,7 +215,7 @@ 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("")) if (dialog->isVisible() && dialog->controller().initialiseParams(""))
dialog->view().update(); dialog->view().update();
else else
dialog->hide(); dialog->hide();