}
case LFUN_PARAGRAPH_UPDATE: {
+ if (!bv_->owner()->getDialogs().visible("paragraph"))
+ break;
Paragraph const * par = &*bv_->getLyXText()->cursor.par();
if (!par)
break;
+2003-06-06 Alfredo Braunstein <abraunst@libero.it>
+
+ * BufferView_pimpl.C (dispatch): use Dialogs::visible
+
2003-06-04 Angus Leeming <leeming@lyx.org>
* buffer.C: bump format to 224.
+2003-06-06 Alfredo Braunstein <abraunst@libero.it>
+
+ * Dialogs.[Ch] (visible): added.
+
2003-06-03 John Levon <levon@movementarian.org>
* lyx_gui.h: add sync_events()
}
+bool Dialogs::visible(string const & name) const
+{
+ std::map<string, DialogPtr>::const_iterator it =
+ dialogs_.find(name);
+ if (it == dialogs_.end())
+ return false;
+ return it->second.get()->isVisible();
+}
+
+
void Dialogs::update(string const & name, string const & data)
{
Dialog * dialog = find(name);
*/
void update(string const & name, string const & data);
+ /// is the dialog currently visible?
+ bool visible(string const & name) const;
+
/** All Dialogs of the given \param name will be closed if they are
connected to the given \param inset.
*/
+2003-06-06 Alfredo Braunstein <abraunst@libero.it>
+
+ * mailinset.C (updateDialog): use Dialogs::visible
+
2003-06-04 Angus Leeming <leeming@lyx.org>
* graphicinset.C (draw): add a comment for the #if 0 block.
void MailInset::updateDialog(BufferView * bv) const
{
- lyx::Assert(bv);
- bv->owner()->getDialogs().update(name(), inset2string());
+ lyx::Assert(bv);
+ if(bv->owner()->getDialogs().visible(name()))
+ bv->owner()->getDialogs().update(name(), inset2string());
}