mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
* LyXView:
- setBuffer(): LyXView has no business in setting parent document. - loadLyXFile(): delete dead code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19703 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
612af5c5f0
commit
8db4a8dd46
@ -119,12 +119,6 @@ void LyXView::setBuffer(Buffer * newBuffer)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// parentfilename will be used in case when we switch to a child
|
|
||||||
// document (hence when child_document is true)
|
|
||||||
string parentfilename;
|
|
||||||
if (oldBuffer)
|
|
||||||
parentfilename = oldBuffer->fileName();
|
|
||||||
|
|
||||||
WorkArea * wa = workArea(*newBuffer);
|
WorkArea * wa = workArea(*newBuffer);
|
||||||
if (wa == 0) {
|
if (wa == 0) {
|
||||||
updateLabels(*newBuffer->getMasterBuffer());
|
updateLabels(*newBuffer->getMasterBuffer());
|
||||||
@ -143,10 +137,6 @@ void LyXView::setBuffer(Buffer * newBuffer)
|
|||||||
Buffer * LyXView::loadLyXFile(FileName const & filename, bool tolastfiles)
|
Buffer * LyXView::loadLyXFile(FileName const & filename, bool tolastfiles)
|
||||||
{
|
{
|
||||||
busy(true);
|
busy(true);
|
||||||
string parentfilename;
|
|
||||||
Buffer * oldBuffer = buffer();
|
|
||||||
if (oldBuffer)
|
|
||||||
parentfilename = oldBuffer->fileName();
|
|
||||||
|
|
||||||
Buffer * newBuffer = checkAndLoadLyXFile(filename);
|
Buffer * newBuffer = checkAndLoadLyXFile(filename);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user