diff --git a/.gitignore b/.gitignore
index 562d0d771e59fb698ede5b2a49e97a1686e89395..81549ebba9610e35ff567da8a73db00f09f3f44a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,8 @@ tags
 *.dll
 *.dylib
 
+vgcore.*
+
 # Qt-es
 
 /.qmake.cache
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index a17e8c658e5320178ddd1d2e70f7431771fed1a9..732e3651857dada199e1b96b463fa59c4d997368 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_);
 }