summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/connectionframe/connectionframe.cpp')
-rw-r--r--src/server/connectionframe/connectionframe.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp
index 1544c76..6bfce81 100644
--- a/src/server/connectionframe/connectionframe.cpp
+++ b/src/server/connectionframe/connectionframe.cpp
@@ -110,6 +110,7 @@ void ConnectionFrame::assignClient(Client* client)
if (_timerId == 0)
_timerId = startTimer(1000 + qrand() % 150);
this->updateColor();
+ _client->setTutor(_isTutor);
}
void ConnectionFrame::showDefaultThumb()
@@ -213,6 +214,14 @@ void ConnectionFrame::setSelection(bool selected)
this->updateColor();
}
+void ConnectionFrame::setTutor(bool b)
+{
+ if (_isTutor != b && _client != NULL)
+ _client->setTutor(b);
+ _isTutor = b;
+ this->updateColor();
+}
+
void ConnectionFrame::updateColor()
{
if (_client == NULL)