mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
Among other problems still left. At least close the right tab if you use the context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31050 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
da2599d8ed
commit
3c91fecb61
@ -1925,10 +1925,10 @@ bool GuiView::saveBuffer(Buffer & b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool GuiView::hideBuffer()
|
bool GuiView::hideWorkArea(GuiWorkArea * wa)
|
||||||
{
|
{
|
||||||
Buffer * buf = buffer();
|
Buffer & buf = wa->bufferView().buffer();
|
||||||
return buf && closeBuffer(*buf, false);
|
return closeBuffer(buf, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,8 +91,8 @@ public:
|
|||||||
void setBuffer(Buffer * b); ///< \c Buffer to set.
|
void setBuffer(Buffer * b); ///< \c Buffer to set.
|
||||||
///
|
///
|
||||||
bool closeBuffer();
|
bool closeBuffer();
|
||||||
/// hides the buffer and makes sure it is clean
|
/// hides the workarea and makes sure it is clean
|
||||||
bool hideBuffer();
|
bool hideWorkArea(GuiWorkArea * wa);
|
||||||
/// load a document into the current workarea.
|
/// load a document into the current workarea.
|
||||||
Buffer * loadDocument(support::FileName const & name, ///< File to load.
|
Buffer * loadDocument(support::FileName const & name, ///< File to load.
|
||||||
bool tolastfiles = true); ///< append to the "Open recent" menu?
|
bool tolastfiles = true); ///< append to the "Open recent" menu?
|
||||||
|
@ -1539,7 +1539,7 @@ void TabWorkArea::closeCurrentTab()
|
|||||||
wa = dynamic_cast<GuiWorkArea *>(widget(clicked_tab_));
|
wa = dynamic_cast<GuiWorkArea *>(widget(clicked_tab_));
|
||||||
LASSERT(wa, /**/);
|
LASSERT(wa, /**/);
|
||||||
}
|
}
|
||||||
wa->view().hideBuffer();
|
wa->view().hideWorkArea(wa);
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user