QTfrontend/pages.cpp
changeset 1315 c2f09811bb8c
parent 1314 e56b178d6d62
child 1334 b58afaadf7ae
--- a/QTfrontend/pages.cpp	Wed Oct 08 13:52:31 2008 +0000
+++ b/QTfrontend/pages.cpp	Wed Oct 08 13:54:51 2008 +0000
@@ -636,6 +636,7 @@
 
 	connect(BtnCreate, SIGNAL(clicked()), this, SLOT(onCreateClick()));
 	connect(BtnJoin, SIGNAL(clicked()), this, SLOT(onJoinClick()));
+	connect(BtnRefresh, SIGNAL(clicked()), this, SLOT(onRefreshClick()));
 	connect(roomsList, SIGNAL(doubleClicked (const QModelIndex &)), this, SLOT(onJoinClick()));
 }
 
@@ -653,7 +654,7 @@
 	else
 		QMessageBox::critical(this,
 				tr("Error"),
-				tr("Please, select record from the list"),
+				tr("Please, enter room name"),
 				tr("OK"));
 }
 
@@ -671,3 +672,8 @@
 	emit askForJoinRoom(curritem->data(Qt::DisplayRole).toString());
 }
 
+void PageRoomsList::onRefreshClick()
+{
+	emit askForRoomList();
+}
+