Do not filter adhoc clients
authoraavit <qt-info@nokia.com>
Wed, 27 Apr 2011 11:01:47 +0000 (13:01 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:55 +0000 (12:54 +0200)
(cherry picked from commit 4fe5307af44a76b99cc8c70aa330180c1985eabc)

tests/arthur/baselineserver/src/baselineserver.cpp

index 9c30638..97ee80c 100644 (file)
@@ -187,9 +187,9 @@ bool BaselineHandler::establishConnection()
              << "[" << qPrintable(plat.value(PI_HostAddress)) << "]" << logMsg;
 
     settings->beginGroup("ClientFilters");
-    if (!settings->childKeys().isEmpty()) {
+    if (!settings->childKeys().isEmpty() && !plat.value(PI_PulseGitBranch).isEmpty()) {  // i.e. not adhoc client
         // Abort if client does not match the filters
-        foreach(QString filterKey, settings->childKeys()) {
+        foreach (QString filterKey, settings->childKeys()) {
             QString filter = settings->value(filterKey).toString();
             QString platVal = plat.value(filterKey);
             if (filter.isEmpty() || platVal.isEmpty())