mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix crash with command line export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22825 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cb0e41adf7
commit
39e5dc250a
@ -845,7 +845,7 @@ bool LyX::init()
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user