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
This commit is contained in:
defnax 2010-01-15 19:24:21 +00:00
parent 363420899a
commit 545f37e615

View File

@ -585,7 +585,6 @@ void MessagesDialog::insertMessages()
// Subject // Subject
item -> setText(2, QString::fromStdWString(it->title)); item -> setText(2, QString::fromStdWString(it->title));
item -> setIcon(2, (QIcon(":/images/message-mail-read.png")));
// No of Files. // No of Files.
{ {
@ -611,9 +610,12 @@ void MessagesDialog::insertMessages()
item->setFont(i, qf); item->setFont(i, qf);
item -> setIcon(2, (QIcon(":/images/message-mail.png"))); 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 */ /* add to the list */
items.append(item); items.append(item);
@ -674,6 +676,7 @@ void MessagesDialog::insertMsgTxtAndFiles()
ui.subjectText->setText(""); ui.subjectText->setText("");
ui.msgList->clear(); ui.msgList->clear();
ui.msgText->clear();
return; return;
} }