From f1d25c23f8b18c98fd7e27e6aa3d2114163a347c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 25 Apr 2008 12:45:39 +0000 Subject: [PATCH] Don't hide dialogs upon buffer switch. I've been wanting to do this for a looonnng time... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24502 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 14 -------------- src/frontends/qt4/GuiView.h | 3 +-- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 9882c3a840..215cdeb160 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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::const_iterator it = d.dialogs_.begin(); - map::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::const_iterator it = d.dialogs_.begin(); diff --git a/src/frontends/qt4/GuiView.h b/src/frontends/qt4/GuiView.h index dcd0dffb25..7367af68db 100644 --- a/src/frontends/qt4/GuiView.h +++ b/src/frontends/qt4/GuiView.h @@ -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.