summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJamey Hicks <jamey.hicks@nokia.com>2012-05-08 11:04:56 -0400
committerQt by Nokia <qt-info@nokia.com>2012-05-09 12:53:18 +0200
commit133a5c610fd09468f67e1950d73bc5462f530c0c (patch)
tree6e3fa8261ffdd23f00856b6b387a861e92f27027 /tools
parent6dc83f29735474ddef6e25d4aa298df2a247ed13 (diff)
Enable compile-time specification of jsondb socket name.
To change the default jsondb socket name: qmake DEFINES+=JSONDB_SOCKET_NAME=/var/run/jsondb Fixes Bug #14089 Change-Id: Id628d1abce9a53e88008f3c6467c8271d90a65fd Reviewed-by: Jeremy Katz <jeremy.katz@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/jsondb-client/client.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/jsondb-client/client.cpp b/tools/jsondb-client/client.cpp
index 60103b15..0f37c61b 100644
--- a/tools/jsondb-client/client.cpp
+++ b/tools/jsondb-client/client.cpp
@@ -229,10 +229,7 @@ Client::~Client()
bool Client::connectToServer()
{
- QString socketName = ::getenv("JSONDB_SOCKET");
mConnection = new QtJsonDb::QJsonDbConnection(this);
- if (!socketName.isEmpty())
- mConnection->setSocketName(socketName);
connect(mConnection, SIGNAL(error(QtJsonDb::QJsonDbConnection::ErrorCode,QString)),
this, SLOT(error(QtJsonDb::QJsonDbConnection::ErrorCode,QString)));