Changeset 117 in ntrip


Ignore:
Timestamp:
Sep 7, 2006, 4:05:17 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r116 r117  
    230230////////////////////////////////////////////////////////////////////////////
    231231void bncWindow::slotDeleteMountPoints() {
    232   for (int iRow = _mountPointsTable->rowCount()-1; iRow >= 0; iRow--) {
     232
     233  int nRows = _mountPointsTable->rowCount();
     234  bool flg[nRows];
     235  for (int iRow = 0; iRow < nRows; iRow++) {
    233236    if (_mountPointsTable->isItemSelected(_mountPointsTable->item(iRow,1))) {
     237      flg[iRow] = true;
     238    }
     239    else {
     240      flg[iRow] = false;
     241    }
     242  }
     243  for (int iRow = nRows-1; iRow >= 0; iRow--) {
     244    if (flg[iRow]) {
    234245      _mountPointsTable->removeRow(iRow);
    235246    }
Note: See TracChangeset for help on using the changeset viewer.