Changeset 101 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Sep 6, 2006, 8:12:30 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r93 r101  
    174174////////////////////////////////////////////////////////////////////////////
    175175void bncWindow::slotAddMountPoints() {
     176
     177  QSettings settings;
     178  QString proxyHost = settings.value("proxyHost").toString();
     179  int     proxyPort = settings.value("proxyPort").toInt();
     180  if (proxyHost != _proxyHostLineEdit->text()         ||
     181      proxyPort != _proxyPortLineEdit->text().toInt()) {
     182    int iRet = QMessageBox::question(this, "Question", "Proxy options"
     183                                     "changed. Use the new ones?",
     184                                     QMessageBox::Yes, QMessageBox::No,
     185                                     QMessageBox::NoButton);
     186    if      (iRet == QMessageBox::Yes) {
     187      settings.setValue("proxyHost",   _proxyHostLineEdit->text());
     188      settings.setValue("proxyPort",   _proxyPortLineEdit->text());
     189    }
     190  }
     191
    176192  bncTableDlg* dlg = new bncTableDlg(this);
    177193  dlg->move(this->pos().x()+50, this->pos().y()+50);
Note: See TracChangeset for help on using the changeset viewer.