Changeset 1478 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jan 17, 2009, 5:07:57 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r1477 r1478  
    297297
    298298  QUrl url;
     299  url.setScheme("http");
    299300  url.setHost(_casterHostComboBox->currentText());
    300301  url.setPort(_casterPortLineEdit->text().toInt());
     
    562563  QStringList oldUrlList = settings.value("casterUrlList").toStringList();
    563564  QStringList newUrlList;
     565  bool replaced = false;
    564566  for (int ii = 0; ii < oldUrlList.count(); ii++) {
    565567    QUrl oldUrl(oldUrlList[ii]);
    566568    if (url.host() == oldUrl.host()) {
    567569      newUrlList << url.toString();
     570      replaced = true;
    568571    }
    569572    else {
    570573      newUrlList << oldUrl.toString();
    571574    }
     575  }
     576  if (! replaced) {
     577    newUrlList << url.toString();
    572578  }
    573579  settings.setValue("casterUrlList", newUrlList);
Note: See TracChangeset for help on using the changeset viewer.