Changeset 290:5ac24f90a4f3
- Timestamp:
- 07/03/2008 05:21:54 PM (4 years ago)
- Author:
- Dmitry Nezhevenko <dion@…>
- Branch:
- default
- Message:
-
Allow empty version match
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r289
|
r290
|
|
| 972 | 972 | QString xmlns=QString::fromStdString(s->xmlns()); |
| 973 | 973 | if (s->subtype()!=gloox::StanzaIqResult || xmlns!="jabber:iq:version") |
| 974 | | return false; |
| | 974 | return false; |
| 975 | 975 | |
| 976 | 976 | gloox::Tag* query=s->findChild("query", "xmlns", xmlns.toStdString()); |
| … |
… |
|
| 1313 | 1313 | { |
| 1314 | 1314 | AListItem* item=list->at(i); |
| | 1315 | bool processEmpty=false; |
| 1315 | 1316 | |
| 1316 | 1317 | if (matcher!=AListItem::MatcherUnknown && matcher!=AListItem::MatcherAll && |
| … |
… |
|
| 1343 | 1344 | if (!nick || !nick->isVersionStored()) |
| 1344 | 1345 | continue; |
| | 1346 | processEmpty=true; |
| 1345 | 1347 | } |
| 1346 | 1348 | |
| … |
… |
|
| 1359 | 1361 | } |
| 1360 | 1362 | |
| 1361 | | if (testValue.isEmpty()) |
| | 1363 | if (!processEmpty && testValue.isEmpty()) |
| 1362 | 1364 | continue; |
| 1363 | 1365 | |