Commit 53dd252a authored by David Faure's avatar David Faure

messageviewerplugins: don't create widget just to hide it

Called by ViewerPluginToolManager::closeAllTools() in
ViewerPrivate::resetStateForNewMessage().
parent 90f826ed
......@@ -64,7 +64,9 @@ void ViewerPluginCreateEventInterface::setMessage(const KMime::Message::Ptr &val
void ViewerPluginCreateEventInterface::closePlugin()
{
widget()->slotCloseWidget();
if (mEventEdit) {
mEventEdit->slotCloseWidget();
}
}
void ViewerPluginCreateEventInterface::showWidget()
......
......@@ -62,7 +62,9 @@ void ViewerPluginCreatenoteInterface::setMessage(const KMime::Message::Ptr &valu
void ViewerPluginCreatenoteInterface::closePlugin()
{
widget()->slotCloseWidget();
if (mNoteEdit) {
mNoteEdit->slotCloseWidget();
}
}
Akonadi::Relation ViewerPluginCreatenoteInterface::relatedNoteRelation() const
......
......@@ -59,7 +59,9 @@ void ViewerPluginCreateTodoInterface::setMessage(const KMime::Message::Ptr &valu
void ViewerPluginCreateTodoInterface::closePlugin()
{
widget()->slotCloseWidget();
if (mTodoEdit) {
mTodoEdit->slotCloseWidget();
}
}
void ViewerPluginCreateTodoInterface::showWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment