From: Vincent van Ravesteijn Date: Wed, 1 Dec 2010 00:51:10 +0000 (+0000) Subject: Fix crash when apply Preferences. This was introduced in r36625. Just one check too... X-Git-Tag: 2.0.0~1577 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75cb1ebdc12ec84349bef2873b29ed52e0fb916f;p=features.git Fix crash when apply Preferences. This was introduced in r36625. Just one check too few. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36641 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index 4019e5b8cc..a6033b1c20 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -902,6 +902,8 @@ void MenuDefinition::expandDocuments() int i = 0; while (true) { + if (!guiApp->currentView()) + break; GuiWorkArea * wa = guiApp->currentView()->workArea(i); if (!wa) break;