diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2009-07-19 02:57:50 +0400 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2009-07-23 09:42:16 +0400 |
commit | d3c9806c49b4db8a41ec59244d50e9a4e13b47ff (patch) | |
tree | 5fd1036f97bebc0d3cd6c3689ccb6ec636fb3fb0 /src/murmur/RPC.cpp | |
parent | f67a93a59baf8331cc35b3a5646ac1753bfb8ebe (diff) |
Channel sorting.
Diffstat (limited to 'src/murmur/RPC.cpp')
-rw-r--r-- | src/murmur/RPC.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/murmur/RPC.cpp b/src/murmur/RPC.cpp index d7e40366c..976eebe8e 100644 --- a/src/murmur/RPC.cpp +++ b/src/murmur/RPC.cpp @@ -83,7 +83,7 @@ void Server::setUserState(User *pUser, Channel *cChannel, bool mute, bool deaf, } } -bool Server::setChannelState(Channel *cChannel, Channel *cParent, const QString &qsName, const QSet<Channel *> &links, const QString &desc) { +bool Server::setChannelState(Channel *cChannel, Channel *cParent, const QString &qsName, const QSet<Channel *> &links, const QString &desc, const int position) { bool changed = false; bool updated = false; @@ -136,6 +136,13 @@ bool Server::setChannelState(Channel *cChannel, Channel *cParent, const QString changed = true; } + if (position != cChannel->iPosition) { + changed = true; + updated = true; + cChannel->iPosition = position; + mpcs.set_position(position); + } + if (! desc.isNull() && desc != cChannel->qsDesc) { updated = true; changed = true; |