mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-06 07:52:27 -04:00
Remove the read_log() stuff.
This commit is contained in:
parent
50f2ef1931
commit
bac63c1ea7
@ -1052,9 +1052,6 @@ void MainWindow::decode() //decode()
|
|||||||
datcom_.junk1=1234;
|
datcom_.junk1=1234;
|
||||||
datcom_.junk2=5678;
|
datcom_.junk2=5678;
|
||||||
|
|
||||||
//newdat=1 ==> this is new data, must do the big FFT
|
|
||||||
//nagain=1 ==> decode only at fQSO +/- Tol
|
|
||||||
|
|
||||||
char *to = (char*)mem_m65.data();
|
char *to = (char*)mem_m65.data();
|
||||||
char *from = (char*) datcom_.d4;
|
char *from = (char*) datcom_.d4;
|
||||||
int size=sizeof(datcom_);
|
int size=sizeof(datcom_);
|
||||||
@ -1137,8 +1134,6 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
read_log();
|
|
||||||
|
|
||||||
if(t.indexOf("~") >= 0) {
|
if(t.indexOf("~") >= 0) {
|
||||||
int n=t.length();
|
int n=t.length();
|
||||||
int m=2;
|
int m=2;
|
||||||
@ -1543,24 +1538,3 @@ bool MainWindow::isGrid4(QString g)
|
|||||||
if(g.mid(3,1)<'0' or g.mid(3,1)>'9') return false;
|
if(g.mid(3,1)<'0' or g.mid(3,1)>'9') return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::read_log()
|
|
||||||
{
|
|
||||||
// Update "m_worked" by reading wsjtx.log
|
|
||||||
m_worked.clear(); //Start from scratch
|
|
||||||
QFile f("wsjtx.log");
|
|
||||||
f.open(QIODevice::ReadOnly);
|
|
||||||
if(f.isOpen()) {
|
|
||||||
QTextStream in(&f);
|
|
||||||
QString line,callsign;
|
|
||||||
for(int i=0; i<99999; i++) {
|
|
||||||
line=in.readLine();
|
|
||||||
if(line.length()<=0) break;
|
|
||||||
callsign=line.mid(40,6);
|
|
||||||
int n=callsign.indexOf(",");
|
|
||||||
if(n>0) callsign=callsign.left(n);
|
|
||||||
m_worked[callsign]=true;
|
|
||||||
}
|
|
||||||
f.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -222,7 +222,6 @@ private:
|
|||||||
void stub();
|
void stub();
|
||||||
bool isGrid4(QString g);
|
bool isGrid4(QString g);
|
||||||
bool subProcessFailed (QProcess *, int exit_code, QProcess::ExitStatus);
|
bool subProcessFailed (QProcess *, int exit_code, QProcess::ExitStatus);
|
||||||
void read_log();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void getfile(QString fname, bool xpol, int idInt);
|
extern void getfile(QString fname, bool xpol, int idInt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user