[atlantik-cvs] CVS: kdegames/atlantik/client selectserver_widget.cpp, 1.36, 1.36.4.1
[email protected] Tue, 27 Jan 2004 03:57:16 +0100 (CET)
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv31625/client
Modified Files:
Tag: KDE_3_2_BRANCH
selectserver_widget.cpp
Log Message:
backport: hide development servers identifying themselves with "-dev"
Index: selectserver_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectserver_widget.cpp,v
retrieving revision 1.36
retrieving revision 1.36.4.1
diff -u -d -r1.36 -r1.36.4.1
--- selectserver_widget.cpp 26 Oct 2003 09:57:00 -0000 1.36
+++ selectserver_widget.cpp 27 Jan 2004 02:57:13 -0000 1.36.4.1
@@ -1,4 +1,4 @@
-// Copyright (c) 2002-2003 Rob Kaper <[email protected]>
+// Copyright (c) 2002-2004 Rob Kaper <[email protected]>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -16,6 +16,7 @@
#include <qlayout.h>
#include <qradiobutton.h>
+#include <qregexp.h>
#include <qsizepolicy.h>
#include <qvbuttongroup.h>
#include <qhgroupbox.h>
@@ -121,7 +122,7 @@
void SelectServer::slotMonopigatorAdd(QString host, QString port, QString version, int users)
{
- if (m_hideDevelopmentServers && version.contains("CVS"))
+ if (m_hideDevelopmentServers && version.find( QRegExp("(CVS|-dev)") ) != -1 )
return;
MonopigatorEntry *item = new MonopigatorEntry(m_serverList, host, QString::number(9999), version, (users == -1) ? i18n("unknown") : QString::number(users), port);