Don't try to read wsjt.log if no such file is found. Update version# in map65b.iss.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@7543 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-01-20 16:00:25 +00:00
parent 65b9090903
commit 571cf41571
2 changed files with 13 additions and 11 deletions

View File

@ -276,16 +276,18 @@ MainWindow::MainWindow(QWidget *parent) :
// Create "m_worked", a dictionary of all calls in wsjt.log
QFile f("wsjt.log");
f.open(QIODevice::ReadOnly);
QTextStream in(&f);
QString line,t,callsign;
for(int i=0; i<99999; i++) {
line=in.readLine();
if(line.length()<=0) break;
t=line.mid(18,12);
callsign=t.mid(0,t.indexOf(","));
m_worked[callsign]=true;
if(f.isOpen()) {
QTextStream in(&f);
QString line,t,callsign;
for(int i=0; i<99999; i++) {
line=in.readLine();
if(line.length()<=0) break;
t=line.mid(18,12);
callsign=t.mid(0,t.indexOf(","));
m_worked[callsign]=true;
}
f.close();
}
f.close();
if(ui->actionLinrad->isChecked()) on_actionLinrad_triggered();
if(ui->actionCuteSDR->isChecked()) on_actionCuteSDR_triggered();

View File

@ -1,8 +1,8 @@
; For Use With JTSDK v2.0.0
#define MyAppName "MAP65"
#define MyAppVersion "2.5"
#define MyAppVersion "2.7"
#define MyAppPublisher "Joe Taylor, K1JT"
#define MyAppCopyright "Copyright (C) 2001-2015 by Joe Taylor, K1JT"
#define MyAppCopyright "Copyright (C) 2001-2017 by Joe Taylor, K1JT"
#define MyAppURL "http://physics.princeton.edu/pulsar/k1jt/map65.html"
#define WsjtGroupURL "https://groups.yahoo.com/neo/groups/wsjtgroup/info"