# HG changeset patch # User unc0rr # Date 1231951784 0 # Node ID bb12cb688f752af304477ea0062f7466aff1f946 # Parent a2035c5d6089d9f8cd46ed9fdfb6887e50066385 Implement isInRoom in client diff -r a2035c5d6089 -r bb12cb688f75 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Wed Jan 14 16:41:29 2009 +0000 +++ b/QTfrontend/hwform.cpp Wed Jan 14 16:49:44 2009 +0000 @@ -303,9 +303,6 @@ { ui.pageGameStats->renderStats(); } - - if ((lastid == ID_PAGE_GAMESTATS) && (id == ID_PAGE_NETGAME) && !hwnet) - GoBack(); } void HWForm::GoToPage(quint8 id) diff -r a2035c5d6089 -r bb12cb688f75 QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Wed Jan 14 16:41:29 2009 +0000 +++ b/QTfrontend/newnetclient.cpp Wed Jan 14 16:49:44 2009 +0000 @@ -705,3 +705,8 @@ netClientState = 2; RawSendNet(QString("PART")); } + +bool HWNewNet::isInRoom() +{ + return netClientState > 2; +} diff -r a2035c5d6089 -r bb12cb688f75 QTfrontend/newnetclient.h --- a/QTfrontend/newnetclient.h Wed Jan 14 16:41:29 2009 +0000 +++ b/QTfrontend/newnetclient.h Wed Jan 14 16:49:44 2009 +0000 @@ -43,6 +43,7 @@ void Connect(const QString & hostName, quint16 port, const QString & nick); void Disconnect(); bool isRoomChief(); + bool isInRoom(); private: GameUIConfig* config;