mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-17 13:26:58 +00:00
Fix crash in batch LyX when ui_style is set (#13141)
This was due to guiApp not existing in batch mode
This commit is contained in:
parent
2d59031c3e
commit
68fa1a07e3
@ -1257,6 +1257,8 @@ docstring Application::mathIcon(docstring const & c)
|
||||
|
||||
void Application::applyPrefs()
|
||||
{
|
||||
if (!guiApp)
|
||||
return;
|
||||
if (lyxrc.ui_style != "default")
|
||||
lyx::frontend::GuiApplication::setStyle(toqstr(lyxrc.ui_style));
|
||||
#if (defined(Q_OS_WIN) || defined(Q_CYGWIN_WIN) || defined(Q_OS_MAC)) && QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user