diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-22 08:44:41 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-22 08:44:41 +0000 |
| commit | 5d212b90576c695fde9acf7f134d73910e51c18a (patch) | |
| tree | 330347aeade2698646f857e9d3a4632b8368f8b8 /source/QXmppRosterIq.cpp | |
| parent | 68b7f71c483fdaa820f95496c6a4b640dd13f610 (diff) | |
| download | qxmpp-5d212b90576c695fde9acf7f134d73910e51c18a.tar.gz | |
handle the "NotSet" value of a roster item subscription type
Diffstat (limited to 'source/QXmppRosterIq.cpp')
| -rw-r--r-- | source/QXmppRosterIq.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/QXmppRosterIq.cpp b/source/QXmppRosterIq.cpp index 52686563..ab298913 100644 --- a/source/QXmppRosterIq.cpp +++ b/source/QXmppRosterIq.cpp @@ -140,7 +140,9 @@ void QXmppRosterIq::Item::setSubscriptionType(SubscriptionType type) void QXmppRosterIq::Item::setSubscriptionTypeFromStr(const QString& type) { - if(type == "none") + if(type == "") + setSubscriptionType(NotSet); + else if(type == "none") setSubscriptionType(None); else if(type == "both") setSubscriptionType(Both); |
