mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
sort hound Age ascending
This commit is contained in:
parent
a8eaa66f2a
commit
cc4d56691f
@ -10135,7 +10135,11 @@ QString MainWindow::sortHoundCalls(QString t, int isort, int max_dB)
|
|||||||
else
|
else
|
||||||
i=isort; // part of the line that we want
|
i=isort; // part of the line that we want
|
||||||
t1=map[a].split(" ",SkipEmptyParts).at(i);
|
t1=map[a].split(" ",SkipEmptyParts).at(i);
|
||||||
n=1000*(t1.toInt()+100) + j; // pack (snr or dist or age) and index j into n
|
int isort_value = t1.toInt();
|
||||||
|
if (isort==5) { // sort by age ascending
|
||||||
|
isort_value = (100 < isort_value ? 100 : 100-isort_value);
|
||||||
|
}
|
||||||
|
n=1000*(isort_value+100) + j; // pack (snr or dist or age) and index j into n
|
||||||
list.insert(j,n); // add n to list at [j]
|
list.insert(j,n); // add n to list at [j]
|
||||||
}
|
}
|
||||||
if (isort == 6) { // sort by continent
|
if (isort == 6) { // sort by continent
|
||||||
@ -10222,7 +10226,7 @@ void MainWindow::selectHound(QString line, bool bTopQueue)
|
|||||||
* The line may be selected by double-clicking; alternatively, hitting
|
* The line may be selected by double-clicking; alternatively, hitting
|
||||||
* <Enter> is equivalent to double-clicking on the top-most line.
|
* <Enter> is equivalent to double-clicking on the top-most line.
|
||||||
*/
|
*/
|
||||||
if(line.length()==0) return;
|
if(line.simplified().isEmpty()) return;
|
||||||
if(line.length() < 6) return;
|
if(line.length() < 6) return;
|
||||||
QString houndCall=line.split(" ",SkipEmptyParts).at(0);
|
QString houndCall=line.split(" ",SkipEmptyParts).at(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user