Changeset 1483 in ntrip
- Timestamp:
- Jan 17, 2009, 5:44:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r1482 r1483 569 569 QStringList oldUrlList = settings.value("casterUrlList").toStringList(); 570 570 QStringList newUrlList; 571 bool replaced = false;571 newUrlList << url.toString(); 572 572 for (int ii = 0; ii < oldUrlList.count(); ii++) { 573 573 QUrl oldUrl(oldUrlList[ii]); 574 if (url.host() == oldUrl.host()) { 575 newUrlList << url.toString(); 576 replaced = true; 577 } 578 else { 574 if (url.host() != oldUrl.host()) { 579 575 newUrlList << oldUrl.toString(); 580 576 } 581 577 } 582 578 if (! replaced) { 583 newUrlList << url.toString();584 579 } 585 580 settings.setValue("casterUrlList", newUrlList);
Note:
See TracChangeset
for help on using the changeset viewer.