mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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;
|
||||
}
|
||||
|
||||
// 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);
|
||||
if (wa == 0) {
|
||||
updateLabels(*newBuffer->getMasterBuffer());
|
||||
@ -143,10 +137,6 @@ void LyXView::setBuffer(Buffer * newBuffer)
|
||||
Buffer * LyXView::loadLyXFile(FileName const & filename, bool tolastfiles)
|
||||
{
|
||||
busy(true);
|
||||
string parentfilename;
|
||||
Buffer * oldBuffer = buffer();
|
||||
if (oldBuffer)
|
||||
parentfilename = oldBuffer->fileName();
|
||||
|
||||
Buffer * newBuffer = checkAndLoadLyXFile(filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user