mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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
This commit is contained in:
parent
0dafe24d16
commit
f1d25c23f8
@ -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();
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user