Pin calling activity to the top of the activity window
This commit is contained in:
parent
7b7493d560
commit
fa0baad9a0
@ -7544,7 +7544,17 @@ void MainWindow::postDecode (bool is_new, QString const& message)
|
|||||||
auto now = QDateTime::currentDateTimeUtc();
|
auto now = QDateTime::currentDateTimeUtc();
|
||||||
clearTableWidget(ui->tableWidgetRXAll);
|
clearTableWidget(ui->tableWidgetRXAll);
|
||||||
QList<int> keys = m_bandActivity.keys();
|
QList<int> keys = m_bandActivity.keys();
|
||||||
qSort(keys.begin(), keys.end());
|
|
||||||
|
qSort(keys.begin(), keys.end(), [this](const int left, int right){
|
||||||
|
if(m_rxDirectedCache.contains(left/10*10)){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if(m_rxDirectedCache.contains(right/10*10)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return left < right;
|
||||||
|
});
|
||||||
|
|
||||||
foreach (int offset, keys) {
|
foreach (int offset, keys) {
|
||||||
QList<ActivityDetail> items = m_bandActivity[offset];
|
QList<ActivityDetail> items = m_bandActivity[offset];
|
||||||
if(items.length() > 0){
|
if(items.length() > 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user