]> git.lyx.org Git - lyx.git/blobdiff - src/insets/MailInset.cpp
Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
[lyx.git] / src / insets / MailInset.cpp
index 722cbf362056df159be67f8ad8a84ca9bdd8d3a1..5d61a3980c64e0f8193eada3cf0a8562452113e3 100644 (file)
 
 #include <boost/assert.hpp>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 
 void MailInset::showDialog(BufferView * bv) const
 {
@@ -41,7 +40,8 @@ void MailInset::updateDialog(BufferView * bv) const
 
 void MailInset::hideDialog() const
 {
-       theApp()->hideDialogs(name(), &inset());
+       if (theApp())
+               theApp()->hideDialogs(name(), &inset());
 }