No need to update the prefs dialog if it is not visible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22015 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-08 14:29:29 +00:00
parent db95e2cb85
commit 8cd46dd3c3

View File

@ -1722,8 +1722,10 @@ void GuiView::updateBufferDependent(bool switched) const
for(; it != end; ++it) { for(; it != end; ++it) {
Dialog * dialog = it->second.get(); Dialog * dialog = it->second.get();
if (!dialog->isVisibleView())
continue;
if (switched && dialog->isBufferDependent()) { if (switched && dialog->isBufferDependent()) {
if (dialog->isVisibleView() && dialog->initialiseParams("")) if (dialog->initialiseParams(""))
dialog->updateView(); dialog->updateView();
else else
dialog->hide(); dialog->hide();