From cf8330f35020e6c57ac17a72128d9fb51536d5a9 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 1 Jan 2010 16:05:51 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/forums/CreateForumMsg.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/retroshare-gui/src/gui/forums/CreateForumMsg.cpp b/retroshare-gui/src/gui/forums/CreateForumMsg.cpp index f5a1dcfcd..72a43e68c 100644 --- a/retroshare-gui/src/gui/forums/CreateForumMsg.cpp +++ b/retroshare-gui/src/gui/forums/CreateForumMsg.cpp @@ -65,6 +65,15 @@ void CreateForumMsg::newMsg() ui.forumName->setText(name); ui.forumSubject->setText(subj); + + if (!ui.forumSubject->text().isEmpty()) + { + ui.forumMessage->setFocus(); + } + else + { + ui.forumSubject->setFocus(); + } if (fi.forumFlags & RS_DISTRIB_AUTHEN_REQ) {