From 33967822bbe7290c9c40f166701be00914d006d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 10 Dec 2007 22:52:59 +0000 Subject: [PATCH] do not unnecessarily crash on shutdown... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22070 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/MailInset.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/MailInset.cpp b/src/insets/MailInset.cpp index 722cbf3620..04e0d886fa 100644 --- a/src/insets/MailInset.cpp +++ b/src/insets/MailInset.cpp @@ -41,7 +41,8 @@ void MailInset::updateDialog(BufferView * bv) const void MailInset::hideDialog() const { - theApp()->hideDialogs(name(), &inset()); + if (theApp()) + theApp()->hideDialogs(name(), &inset()); } -- 2.39.5