Changeset 1282 in ntrip for trunk/BNC/bncmain.cpp


Ignore:
Timestamp:
Dec 7, 2008, 7:33:02 PM (15 years ago)
Author:
zdenek
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmain.cpp

    r1273 r1282  
    125125  }
    126126
     127  // Truncate list of casters
     128  // ------------------------
     129  int maxListSize = 5;
     130  QStringList casterHostList = settings.value("casterHostList").toStringList();
     131  if ( casterHostList.count() > maxListSize ) {
     132    QStringList listCopy;
     133    for (int ii = 0; ii < maxListSize; ii++) {
     134      listCopy.push_back(casterHostList[ii]);
     135    }
     136    settings.setValue("casterHostList", listCopy);
     137  }
     138
     139
     140
    127141  bncApp app(argc, argv, GUIenabled);
    128142
Note: See TracChangeset for help on using the changeset viewer.