]> git.lyx.org Git - features.git/commitdiff
Don't hide dialogs upon buffer switch. I've been wanting to do this for a looonnng...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 25 Apr 2008 12:45:39 +0000 (12:45 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 25 Apr 2008 12:45:39 +0000 (12:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24502 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h

index 9882c3a840b2a8c8c6ecb4ea6b062c79c5c665b3..215cdeb16057b5ea6f52b38dcaa8b94a2d03b8d7 100644 (file)
@@ -784,7 +784,6 @@ void GuiView::removeWorkArea(GuiWorkArea * wa)
        if (wa == d.current_work_area_) {
                disconnectBuffer();
                disconnectBufferView();
-               hideBufferDependent();
                d.current_work_area_ = 0;
        }
 
@@ -2148,19 +2147,6 @@ void GuiView::hideAll() const
 }
 
 
-void GuiView::hideBufferDependent() const
-{
-       map<string, DialogPtr>::const_iterator it  = d.dialogs_.begin();
-       map<string, DialogPtr>::const_iterator end = d.dialogs_.end();
-
-       for(; it != end; ++it) {
-               Dialog * dialog = it->second.get();
-               if (dialog->isBufferDependent())
-                       dialog->hideView();
-       }
-}
-
-
 void GuiView::updateBufferDependent(bool switched) const
 {
        map<string, DialogPtr>::const_iterator it  = d.dialogs_.begin();
index dcd0dffb25ac0db461a5615201f83f8ab9cc92ae..7367af68db0a1f9f2cfe41a85c81598a50145e06 100644 (file)
@@ -207,8 +207,7 @@ public:
 
        /// Hide all visible dialogs
        void hideAll() const;
-       /// Hide any dialogs that require a buffer for them to operate
-       void hideBufferDependent() const;
+
        /** Update visible, buffer-dependent dialogs
            If the bool is true then a buffer change has occurred
            else it is still the same buffer.