summaryrefslogtreecommitdiffstats
path: root/src/server/connectionframe/connectionframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/connectionframe/connectionframe.h')
-rw-r--r--src/server/connectionframe/connectionframe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h
index 56cde9c..9d86c70 100644
--- a/src/server/connectionframe/connectionframe.h
+++ b/src/server/connectionframe/connectionframe.h
@@ -62,7 +62,7 @@ public:
const inline QPoint& getCurrentPosition() const { return _currentPosition; }
const QString& computerId() const { return _computerId; }
- const inline void setComputerId(QString computerId) { _computerId = computerId; }
+ void setComputerId(QString computerId) { if (_client != NULL) return; _computerId = computerId; updateLabels(); }
Client* client() const { return _client; }
inline const bool isTutor() const { return _isTutor; }
@@ -87,6 +87,7 @@ private slots:
void onClientDisconnected();
void onThumbUpdated(Client* client, const QPixmap& thumb, const QByteArray& rawImage);
void updateAppearance();
+ void updateLabels();
};
#endif