- if (!mailer_name_.empty())
- hideDialogs(mailer_name_, this);
+ if (p_.code() != NO_CODE)
+ hideDialogs(insetName(p_.code()), this);
+
+ map<BufferView const *, bool>::iterator it = mouse_hover_.begin();
+ map<BufferView const *, bool>::iterator end = mouse_hover_.end();
+ for (; it != end; ++it)
+ if (it->second)
+ it->first->clearLastInset(this);