diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -784,8 +784,13 @@ createGUI(plugin->part()); plugin->shortcutChanged(); - setCaption(i18nc("@title:window Plugin dependent window title", - "%1 - Kontact", plugin->title())); + // KParts's guiActivateEvent emptied the caption when leaving the old part, + // and only some parts (like kmail) set it in guiActivateEvent when being activated. + // For others, this is the default caption: + if (windowTitle().isEmpty()) { + setCaption(i18nc("@title:window Plugin dependent window title", + "%1 - Kontact", plugin->title())); + } if (newAction) { mNewActions->setIcon(newAction->icon());