nataraj: (Default)
[personal profile] nataraj

Сегодня случайно изыскал баг самого Шутова(Автор Сима)
Вот так замечательно можно распарсить xml:
void JabberClient::IqRequest::element_start(const QString& el, const QXmlAttributes& attrs)
{
    if (el == "iq"){
       // Some code were here
    }
    if (el == "query"){
        m_query = attrs.value("xmlns");
        if (m_query == "jabber:iq:roster"){
            if (el == "item"){

То что внутри if (el == "item") никогда не выполняется...
Сделал так чтобы оно выполнялось...
Надеюсь ничего не сломал, так как общего смысла происходящего не понимаю.

Фишку нашел случайно, тыкая тествый вывод куда попало в попытках понять где оно берет информацию о контактах...
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

nataraj: (Default)
Swami Dhyan Nataraj

July 2024

S M T W T F S
 123456
789 10111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 20th, 2026 08:55 pm
Powered by Dreamwidth Studios