Set the focus the subject input when creating a new forum/channel or channel message.

Set the forum/channel message to read when expanding the message feed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4891 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-02-05 14:56:27 +00:00
parent 549fdf9daa
commit 3b1c26de35
7 changed files with 107 additions and 80 deletions

View file

@ -742,6 +742,8 @@ void ForumsDialog::fillThreadFinished()
#ifdef DEBUG_FORUMS
std::cerr << "ForumsDialog::fillThreadFinished Add messages" << std::endl;
#endif
ui.threadTreeWidget->setSortingEnabled(false);
/* add all messages in! */
if (lastViewType != thread->viewType || lastForumID != mCurrForumId) {
ui.threadTreeWidget->clear();
@ -758,6 +760,8 @@ void ForumsDialog::fillThreadFinished()
CleanupItems (thread->items);
}
ui.threadTreeWidget->setSortingEnabled(true);
if (thread->focusMsgId.empty() == false) {
/* Search exisiting item */
QTreeWidgetItemIterator itemIterator(ui.threadTreeWidget);