- Timestamp:
- Apr 4, 2019, 12:27:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncrinex.cpp
r8660 r8662 170 170 } 171 171 if (!sklDir.isEmpty() && sklDir != "none") { 172 QString staID; 172 QString staID, staIDalternative; 173 QUrl url; 173 174 int stIdLength = _mountPoint.path().length()-2; 174 staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl"; 175 QUrl url(sklDir + staID); 175 staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl"; 176 staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ".skl"; 177 url = sklDir + staID; 176 178 if (url.port() == -1) { 177 179 if (sklDir.contains("https", Qt::CaseInsensitive)) { … … 190 192 QTextStream in(outData); 191 193 irc = _sklHeader.read(&in); 194 } 195 else { 196 url = sklDir + staIDalternative; 197 query->waitForRequestResult(url, outData); 198 if (query->status() == bncNetQuery::finished && 199 outData.contains("END OF HEADER")) { 200 QTextStream in(outData); 201 irc = _sklHeader.read(&in); 202 } 192 203 } 193 204
Note:
See TracChangeset
for help on using the changeset viewer.