#include "LyX.h"
-#include "buffer_funcs.h"
#include "Buffer.h"
#include "BufferList.h"
#include "CmdDef.h"
else
pimpl_->application_->restoreGuiSession();
- BufferList::iterator I = theBufferList().begin();
- BufferList::iterator end = theBufferList().end();
- for (; I != end; ++I) {
- Buffer * buf = *I;
- if (buf != buf->masterBuffer())
- continue;
- updateLabels(*buf);
- }
-
// Execute batch commands if available
if (pimpl_->batch_command.empty())
return;
pimpl_->lyxfunc_.initKeySequences(&pimpl_->toplevel_keymap_);
// Read menus
- if (!readUIFile(lyxrc.ui_file))
+ if (use_gui && !readUIFile(lyxrc.ui_file))
return false;
if (lyxerr.debugging(Debug::LYXRC))