]> git.lyx.org Git - lyx.git/blobdiff - src/insets/MailInset.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / MailInset.cpp
index 722cbf362056df159be67f8ad8a84ca9bdd8d3a1..c59949a3ba2cd9ff5dc946eda0e90fb418665487 100644 (file)
 #include "MailInset.h"
 
 #include "BufferView.h"
-#include "support/debug.h"
 
 #include "frontends/Application.h"
 
+#include "support/debug.h"
+
 #include <boost/assert.hpp>
 
+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());
 }