Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mumble/UserModel.cpp')
-rw-r--r--src/mumble/UserModel.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mumble/UserModel.cpp b/src/mumble/UserModel.cpp
index 35fca925d..ceb7c1dd4 100644
--- a/src/mumble/UserModel.cpp
+++ b/src/mumble/UserModel.cpp
@@ -1052,6 +1052,8 @@ ClientUser *UserModel::addUser(unsigned int id, const QString &name) {
updateOverlay();
+ emit userAdded(p->uiSession);
+
return p;
}
@@ -1087,6 +1089,8 @@ void UserModel::removeUser(ClientUser *p) {
updateOverlay();
+ emit userRemoved(p->uiSession);
+
delete p;
delete item;
}
@@ -1303,6 +1307,8 @@ void UserModel::renameChannel(Channel *c, const QString &name) {
moveItem(pi, pi, item);
}
+
+ emit channelRenamed(c->iId);
}
void UserModel::repositionChannel(Channel *c, const int position) {
@@ -1341,6 +1347,9 @@ Channel *UserModel::addChannel(int id, Channel *p, const QString &name) {
if (Global::get().s.ceExpand == Settings::AllChannels)
Global::get().mw->qtvUsers->setExpanded(index(item), true);
+
+ emit channelAdded(c->iId);
+
return c;
}
@@ -1501,6 +1510,8 @@ bool UserModel::removeChannel(Channel *c, const bool onlyIfUnoccupied) {
Channel::remove(c);
+ emit channelRemoved(c->iId);
+
delete item;
delete c;
return true;