diff options
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); |
