aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp
index a219f1da..8d916280 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -79,6 +79,8 @@ void Connection::connectWithToken(QString userId, QString token)
d->isConnected = true;
d->userId = userId;
d->data->setToken(token);
+ qDebug() << "Connected with token:";
+ qDebug() << token;
emit connected();
}
@@ -175,7 +177,7 @@ User* Connection::user(QString userId)
User *Connection::user()
{
if( d->userId.isEmpty() )
- return 0;
+ return nullptr;
return user(d->userId);
}