Make opustreshold and channelnestinglimit accept zero values in setLiveConf.

This commit is contained in:
Stefan Hacker 2012-11-04 18:06:03 +01:00
parent a13bb16557
commit ce83353dbd

View File

@ -509,9 +509,9 @@ void Server::setLiveConf(const QString &key, const QString &value) {
else if (key == "suggestpushtotalk")
qvSuggestPushToTalk = ! v.isNull() ? (v.isEmpty() ? QVariant() : v) : Meta::mp.qvSuggestPushToTalk;
else if (key == "opusthreshold")
iOpusThreshold = i ? i : Meta::mp.iOpusThreshold;
iOpusThreshold = (i >= 0) ? qBound(0, i, 100) : Meta::mp.iOpusThreshold;
else if (key =="channelnestinglimit")
iChannelNestingLimit = i ? i : Meta::mp.iChannelNestingLimit;
iChannelNestingLimit = (i >= 0) ? i : Meta::mp.iChannelNestingLimit;
}
#ifdef USE_BONJOUR