summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-06 15:17:58 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-06 15:17:58 +0300
commit5bcaaa3aa3893c6a6982c6834090cf0212dc115d (patch)
treeafdc200075511ec50a5d9c8dcfc79ce52e31006d /src
parentAdd rule for release builds (diff)
downloadnheko-5bcaaa3aa3893c6a6982c6834090cf0212dc115d.tar.xz
Initialize sync timer
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc

index a17e8c65..732e3651 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc
@@ -50,6 +50,9 @@ ChatPage::ChatPage(QWidget *parent) user_info_widget_ = new UserInfoWidget(ui->sideBarTopWidget); + sync_timer_ = new QTimer(this); + connect(sync_timer_, SIGNAL(timeout()), this, SLOT(startSync())); + connect(room_list_, SIGNAL(roomChanged(const RoomInfo &)), this, @@ -147,8 +150,6 @@ void ChatPage::initialSyncCompleted(SyncResponse response) view_manager_->initialize(response.rooms()); room_list_->setInitialRooms(response.rooms()); - sync_timer_ = new QTimer(this); - connect(sync_timer_, SIGNAL(timeout()), this, SLOT(startSync())); sync_timer_->start(sync_interval_); }