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


Ignore:
Timestamp:
Apr 5, 2012, 1:35:02 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3792 r3795  
    20852085     || sender() == _pppAntexFileChooser ) {
    20862086
    2087     enable = (!_pppMountLineEdit->text().isEmpty() && !_pppCorrMountLineEdit->text().isEmpty()) ||
    2088              (!_pppMountLineEdit->text().isEmpty() && _pppSPPComboBox->currentText() == "Realtime-SPP")  ||
    2089              (_pppSPPComboBox->currentText() == "Post-Processing");
     2087    enable = !_pppSPPComboBox->currentText().isEmpty();
     2088    if (enable) {
     2089      enable = (!_pppMountLineEdit->text().isEmpty() && !_pppCorrMountLineEdit->text().isEmpty()) ||
     2090               (!_pppMountLineEdit->text().isEmpty() && _pppSPPComboBox->currentText() == "Realtime-SPP")  ||
     2091               (_pppSPPComboBox->currentText() == "Post-Processing");
     2092    }
     2093    else {
     2094      enableWidget(enable, _pppMountLineEdit);
     2095    }
    20902096
    20912097    enableWidget(enable, _pppNMEALineEdit);
     
    21212127    enableWidget(enable4, _pppApplySatAntCheckBox);
    21222128
    2123     bool enable5 = enable && _pppEstTropoCheckBox->isChecked() && !_pppMountLineEdit->text().isEmpty();
     2129    bool enable5 = enable && _pppEstTropoCheckBox->isChecked();
    21242130    enableWidget(enable5, _pppSigTrp0);
    21252131    enableWidget(enable5, _pppSigTrpP);
     
    21392145    enableWidget(enable9, _postCorrFileChooser);
    21402146    enableWidget(enable9, _postOutLineEdit);
    2141     enableWidget(!enable9, _pppMountLineEdit);
     2147    enableWidget(enable && !enable9, _pppMountLineEdit);
    21422148  }
    21432149
Note: See TracChangeset for help on using the changeset viewer.