]> git.lyx.org Git - lyx.git/blobdiff - src/insets/MailInset.cpp
Fix text frame drawing.
[lyx.git] / src / insets / MailInset.cpp
index 964228a9237b089474dd621399234cea210b0b17..d5a7a5bf1a26488f02068e4ac32e75d2bc3c1682 100644 (file)
@@ -14,8 +14,7 @@
 
 #include "BufferView.h"
 #include "debug.h"
-
-#include "frontends/Dialogs.h"
+#include "LyX.h"
 
 
 namespace lyx {
@@ -26,7 +25,7 @@ using std::string;
 void MailInset::showDialog(BufferView * bv) const
 {
        BOOST_ASSERT(bv);
-       bv->showInsetDialog(name(), inset2string(*bv->buffer()),
+       bv->showInsetDialog(name(), inset2string(bv->buffer()),
                                       &inset());
 }
 
@@ -34,13 +33,13 @@ void MailInset::showDialog(BufferView * bv) const
 void MailInset::updateDialog(BufferView * bv) const
 {
        BOOST_ASSERT(bv);
-       bv->updateDialog(name(), inset2string(*bv->buffer()));
+       bv->updateDialog(name(), inset2string(bv->buffer()));
 }
 
 
 void MailInset::hideDialog() const
 {
-       Dialogs::hide(name(), &inset());
+       LyX::cref().hideDialogs(name(), &inset());
 }