X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FMailInset.cpp;h=c59949a3ba2cd9ff5dc946eda0e90fb418665487;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=f2c5d8e8e4115f31b9a94feb330db8f645d0925c;hpb=150cf11651ad92090a452bb9e6cb72d7eea886d5;p=lyx.git diff --git a/src/insets/MailInset.cpp b/src/insets/MailInset.cpp index f2c5d8e8e4..c59949a3ba 100644 --- a/src/insets/MailInset.cpp +++ b/src/insets/MailInset.cpp @@ -13,17 +13,17 @@ #include "MailInset.h" #include "BufferView.h" -#include "debug.h" #include "frontends/Application.h" +#include "support/debug.h" + #include +using namespace std; namespace lyx { -using std::string; - void MailInset::showDialog(BufferView * bv) const { @@ -41,7 +41,8 @@ void MailInset::updateDialog(BufferView * bv) const void MailInset::hideDialog() const { - theApp()->hideDialogs(name(), &inset()); + if (theApp()) + theApp()->hideDialogs(name(), &inset()); }