Diffstat (limited to 'noncore/net/opietooth/lib/parser.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/parser.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/noncore/net/opietooth/lib/parser.cc b/noncore/net/opietooth/lib/parser.cc index 00ec84a..0699309 100644 --- a/noncore/net/opietooth/lib/parser.cc +++ b/noncore/net/opietooth/lib/parser.cc @@ -121,7 +121,6 @@ bool Parser::parseClassId( const QString& str) { m_classOver = true; return true; - }else if ( m_classOver ) { // ok now are the informations in place + }else if ( m_classOver && str.startsWith(" " ) ){ // ok now are the informations in place - m_classOver = false; // "Obex Object Push" (0x1105) @@ -133,10 +132,9 @@ bool Parser::parseClassId( const QString& str) { ids = convert( str, classes ); qWarning("ids %d", ids ); - m_item.setClassIdList( classes ); - m_item.setClassIdList( ids ); + m_item.insertClassId( ids, classes ); return true; }else - m_classOver = true; + m_classOver = false; return false; } |