Added setFocus feature, when creating new Thread or Reply Message change the Focus

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1954 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-01 16:05:51 +00:00
parent 5ae41c8de9
commit cf8330f350

View File

@ -65,6 +65,15 @@ void CreateForumMsg::newMsg()
ui.forumName->setText(name); ui.forumName->setText(name);
ui.forumSubject->setText(subj); ui.forumSubject->setText(subj);
if (!ui.forumSubject->text().isEmpty())
{
ui.forumMessage->setFocus();
}
else
{
ui.forumSubject->setFocus();
}
if (fi.forumFlags & RS_DISTRIB_AUTHEN_REQ) if (fi.forumFlags & RS_DISTRIB_AUTHEN_REQ)
{ {