summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2012-04-23 19:26:41 (GMT)
committerMontel Laurent <montel@kde.org>2012-04-23 19:27:41 (GMT)
commit939dc5a83703774e77aee429587f35eb4fae58eb (patch)
tree9ffdb238345bb3c93164272cb208bbb3c7209343
parent4828cc4b617bd08d7fd5f272f1ce6d7aaa42f902 (diff)
Fix Bug 298181 - add title of messagesright window
FIXED-IN: 4.8.3 BUG: 298181 (cherry picked from commit 670fb8107aa40d23e7a5db8e4d0a48aa67586cb4)
-rw-r--r--kmail/kmreadermainwin.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/kmail/kmreadermainwin.cpp b/kmail/kmreadermainwin.cpp
index c908f44..3783485 100644
--- a/kmail/kmreadermainwin.cpp
+++ b/kmail/kmreadermainwin.cpp
@@ -138,8 +138,15 @@ void KMReaderMainWin::showMessage( const QString & encoding, const Akonadi::Item
mReaderWin->setOverrideEncoding( encoding );
mReaderWin->setMessage( msg, MessageViewer::Viewer::Force );
KMime::Message::Ptr message = MessageCore::Util::message( msg );
- if ( message )
- setCaption( message->subject()->asUnicodeString() );
+ QString caption;
+ if(mParentCollection.isValid()) {
+ caption = MailCommon::Util::fullCollectionPath( mParentCollection );
+ caption += QLatin1String(" - ");
+ }
+ if ( message ) {
+ caption += message->subject()->asUnicodeString();
+ setCaption( caption );
+ }
mMsg = msg;
mMsgActions->setCurrentMessage( msg );