summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-14 18:25:43 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-14 18:25:43 +0300
commit69036967ffbd4fdfd4d4ba01984a2416a7c03378 (patch)
tree2cf944e5106bc3f690e6ffe447f1bc269f4cdac5 /src
parentUpdate the last sender from the initial pagination (diff)
downloadnheko-69036967ffbd4fdfd4d4ba01984a2416a7c03378.tar.xz
Focus on the text input when switching rooms
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index 9f20d54f..43b1f0d3 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -125,6 +125,7 @@ ChatPage::ChatPage(QSharedPointer<MatrixClient> client, QWidget *parent)
 	connect(client_.data(), SIGNAL(loggedOut()), this, SLOT(logout()));
 
 	connect(room_list_, &RoomList::roomChanged, this, &ChatPage::changeTopRoomInfo);
+	connect(room_list_, &RoomList::roomChanged, text_input_, &TextInputWidget::focusLineEdit);
 	connect(room_list_, &RoomList::roomChanged, view_manager_, &TimelineViewManager::setHistoryView);
 
 	connect(view_manager_, &TimelineViewManager::unreadMessages, this, [=](const QString &roomid, int count) {