Skip to content
Snippets Groups Projects
Commit 5bcaaa3a authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Initialize sync timer

parent e1f7ef88
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@ tags
*.dll
*.dylib
vgcore.*
# Qt-es
/.qmake.cache
......
......@@ -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_);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment