Changeset 1475 in ntrip for trunk/BNC/bnctabledlg.cpp


Ignore:
Timestamp:
Jan 17, 2009, 4:11:41 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r1474 r1475  
    296296  QSettings settings;
    297297  settings.setValue("casterHost", _casterHostComboBox->currentText());
    298   QStringList casterHostList;
    299   for (int ii = 0; ii < _casterHostComboBox->count(); ii++) {
    300     casterHostList.push_back(_casterHostComboBox->itemText(ii));
    301   }
    302   settings.setValue("casterHostList", casterHostList);
    303   settings.setValue("casterPort", _casterPortLineEdit->text());
    304298  settings.setValue("ntripVersion", _ntripVersionComboBox->currentText());
    305   settings.setValue("casterUser", _casterUserLineEdit->text());
    306   settings.setValue("casterPassword", _casterPasswordLineEdit->text());
    307299
    308300  QStringList* mountPoints = new QStringList;
     
    557549  _casterUserLineEdit->setText("");
    558550  _casterPortLineEdit->setText(newCasterPort);
     551
     552  QSettings settings;
     553  QStringList casterHostList = settings.value("casterHostList").toStringList();
     554  casterHostList << QString("http://" + newCasterHost + ":" + newCasterPort);
     555  settings.setValue("casterHostList", casterHostList);
     556  settings.sync();
    559557}
    560558
     
    571569    QUrl url(item);
    572570    if (url.host() == newHost) {
    573     cout << "slot: " << url.toString().toAscii().data() << " "
    574          << newHost.toAscii().data() << endl;
    575571      _casterUserLineEdit->setText(url.userName());
    576572      if (url.port() > 0) {
Note: See TracChangeset for help on using the changeset viewer.