Changeset 1540 in ntrip
- Timestamp:
- Jan 26, 2009, 9:49:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmain.cpp
r1538 r1540 63 63 bool fileInput = false; 64 64 bool confFile = false; 65 bool dragAndDrop = true; 65 66 QByteArray fileName; 66 67 QByteArray format; … … 87 88 GUIenabled = false; 88 89 fileInput = true; 90 dragAndDrop = false; 89 91 if (ii+1 < argc) { 90 92 format = QByteArray(argv[ii+1]); … … 92 94 } 93 95 if (QByteArray(argv[ii]) == "-date" || QByteArray(argv[ii]) == "--date") { 96 dragAndDrop = false; 94 97 if (ii+1 < argc) { 95 98 dateString = QString(argv[ii+1]); … … 97 100 } 98 101 if (QByteArray(argv[ii]) == "-time" || QByteArray(argv[ii]) == "--time") { 102 dragAndDrop = false; 99 103 if (ii+1 < argc) { 100 104 timeString = QString(argv[ii+1]); … … 103 107 if (QByteArray(argv[ii]) == "-conf" || QByteArray(argv[ii]) == "--conf") { 104 108 confFile = true; 109 dragAndDrop = false; 105 110 if (ii+1 < argc) { 106 111 confFileName = QString(argv[ii+1]); 112 } 113 } 114 if (dragAndDrop && ii == 1) { 115 confFile = true; 116 if (ii < argc) { 117 confFileName = QString(argv[ii]); 107 118 } 108 119 }
Note:
See TracChangeset
for help on using the changeset viewer.