From 545f37e615f4e8a3e5306c085bf7b490c70072d5 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 15 Jan 2010 19:24:21 +0000 Subject: [PATCH] fixed to clear msgText when not selected git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2047 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessagesDialog.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp index aa90af976..1bb65cd3b 100644 --- a/retroshare-gui/src/gui/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/MessagesDialog.cpp @@ -585,7 +585,6 @@ void MessagesDialog::insertMessages() // Subject item -> setText(2, QString::fromStdWString(it->title)); - item -> setIcon(2, (QIcon(":/images/message-mail-read.png"))); // No of Files. { @@ -611,9 +610,12 @@ void MessagesDialog::insertMessages() item->setFont(i, qf); item -> setIcon(2, (QIcon(":/images/message-mail.png"))); - //std::cerr << "Setting Item BOLD!" << std::endl; } } + else + { + item -> setIcon(2, (QIcon(":/images/message-mail-read.png"))); + } /* add to the list */ items.append(item); @@ -674,6 +676,7 @@ void MessagesDialog::insertMsgTxtAndFiles() ui.subjectText->setText(""); ui.msgList->clear(); + ui.msgText->clear(); return; }