diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-02-03 14:54:36 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-02-03 14:54:36 +0300 |
commit | ef9de69e5663b0fe2fb7ac68e1b23c0715c2fc09 (patch) | |
tree | 1e8cbc6cb023dcc80dc2f4583e0ba6c1ba025a9e /src/mumble/ACLEditor.cpp | |
parent | 1679e0601f6d491865dae2f027e23eb826f2a7d6 (diff) |
Precache texture/comment when sending to server
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r-- | src/mumble/ACLEditor.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp index 81f8e84ad..f3ca263b3 100644 --- a/src/mumble/ACLEditor.cpp +++ b/src/mumble/ACLEditor.cpp @@ -36,7 +36,7 @@ #include "User.h" #include "Global.h" #include "Log.h" - +#include "Database.h" ACLGroup::ACLGroup(const QString &name) : Group(NULL, name) { bInherited = false; @@ -254,14 +254,17 @@ void ACLEditor::accept() { b = true; } if (rteChannelDescription->isModified() && (pChannel->qsDesc != rteChannelDescription->text())) { - mpcs.set_description(u8(rteChannelDescription->text())); + const QString &msg = rteChannelDescription->text(); + mpcs.set_description(u8(msg)); b = true; + Database::setBlob(sha1(msg), msg.toUtf8()); } if (pChannel->iPosition != qsbChannelPosition->value()) { mpcs.set_position(qsbChannelPosition->value()); b = true; } - if (b) g.sh->sendMessage(mpcs); + if (b) + g.sh->sendMessage(mpcs); // Update ACL msg.set_inherit_acls(bInheritACL); |