- Timestamp:
- Jan 17, 2009, 5:07:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r1477 r1478 297 297 298 298 QUrl url; 299 url.setScheme("http"); 299 300 url.setHost(_casterHostComboBox->currentText()); 300 301 url.setPort(_casterPortLineEdit->text().toInt()); … … 562 563 QStringList oldUrlList = settings.value("casterUrlList").toStringList(); 563 564 QStringList newUrlList; 565 bool replaced = false; 564 566 for (int ii = 0; ii < oldUrlList.count(); ii++) { 565 567 QUrl oldUrl(oldUrlList[ii]); 566 568 if (url.host() == oldUrl.host()) { 567 569 newUrlList << url.toString(); 570 replaced = true; 568 571 } 569 572 else { 570 573 newUrlList << oldUrl.toString(); 571 574 } 575 } 576 if (! replaced) { 577 newUrlList << url.toString(); 572 578 } 573 579 settings.setValue("casterUrlList", newUrlList);
Note:
See TracChangeset
for help on using the changeset viewer.