]> git.lyx.org Git - features.git/commitdiff
do not unnecessarily crash on shutdown...
authorAndré Pönitz <poenitz@gmx.net>
Mon, 10 Dec 2007 22:52:59 +0000 (22:52 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 10 Dec 2007 22:52:59 +0000 (22:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22070 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/MailInset.cpp

index 722cbf362056df159be67f8ad8a84ca9bdd8d3a1..04e0d886fa8ae5468c56b485514c899a77dc465d 100644 (file)
@@ -41,7 +41,8 @@ void MailInset::updateDialog(BufferView * bv) const
 
 void MailInset::hideDialog() const
 {
-       theApp()->hideDialogs(name(), &inset());
+       if (theApp())
+               theApp()->hideDialogs(name(), &inset());
 }