]> git.lyx.org Git - lyx.git/commitdiff
No need to update the prefs dialog if it is not visible.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 8 Dec 2007 14:29:29 +0000 (14:29 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 8 Dec 2007 14:29:29 +0000 (14:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22015 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 1ecc27b612676ed0821ec0e85ea94c112afafe88..6f3d42ca8e7dd37bd8b1b7b3c3992bc2b6bcc870 100644 (file)
@@ -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();