From 8cd46dd3c3db7768984acd22e5cd7ac090ea6cbf Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 8 Dec 2007 14:29:29 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 1ecc27b612..6f3d42ca8e 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1722,8 +1722,10 @@ void GuiView::updateBufferDependent(bool switched) const for(; it != end; ++it) { Dialog * dialog = it->second.get(); + if (!dialog->isVisibleView()) + continue; if (switched && dialog->isBufferDependent()) { - if (dialog->isVisibleView() && dialog->initialiseParams("")) + if (dialog->initialiseParams("")) dialog->updateView(); else dialog->hide();