Initialize sync timer

pull/1/head
Konstantinos Sideris 8 years ago
parent e1f7ef88cd
commit 5bcaaa3aa3
  1. 2
      .gitignore
  2. 5
      src/ChatPage.cc

2
.gitignore vendored

@ -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_);
}

Loading…
Cancel
Save