X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FMailInset.cpp;h=c59949a3ba2cd9ff5dc946eda0e90fb418665487;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=b8b24e4cb2f109cafbd06cf0e124d43d7bb44d6d;hpb=d5fc2425a9bae6482ef36a770eb404297b29433a;p=lyx.git diff --git a/src/insets/MailInset.cpp b/src/insets/MailInset.cpp index b8b24e4cb2..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,16 +41,16 @@ void MailInset::updateDialog(BufferView * bv) const void MailInset::hideDialog() const { - theApp()->hideDialogs(name(), &inset()); + if (theApp()) + theApp()->hideDialogs(name(), &inset()); } void print_mailer_error(string const & class_name, string const & data, int arg_id, string const & arg) { - lyxerr << '\n' << class_name << "::string2params(" << data << ")\n" - << "Expected arg " << arg_id << " to be \"" << arg << "\"\n" - << std::endl; + LYXERR0('\n' << class_name << "::string2params(" << data << ")\n" + << "Expected arg " << arg_id << " to be \"" << arg << "\"\n"); }