diff --git a/plugins/channelrx/radioastronomy/radioastronomygui.cpp b/plugins/channelrx/radioastronomy/radioastronomygui.cpp index 582c1714b..331feff1b 100644 --- a/plugins/channelrx/radioastronomy/radioastronomygui.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomygui.cpp @@ -601,6 +601,7 @@ double RadioAstronomyGUI::beamFillingFactor() const void RadioAstronomyGUI::powerMeasurementReceived(FFTMeasurement *fft, bool skipCalcs) { + ui->powerTable->setSortingEnabled(false); int row = ui->powerTable->rowCount(); ui->powerTable->setRowCount(row + 1); @@ -660,6 +661,8 @@ void RadioAstronomyGUI::powerMeasurementReceived(FFTMeasurement *fft, bool skipC ui->powerTable->setItem(row, POWER_COL_SENSOR_1, sensor1Item); ui->powerTable->setItem(row, POWER_COL_SENSOR_2, sensor2Item); + ui->powerTable->setSortingEnabled(true); + QDateTime dateTime = fft->m_dateTime; dateItem->setData(Qt::DisplayRole, dateTime.date()); timeItem->setData(Qt::DisplayRole, dateTime.time()); diff --git a/plugins/feature/satellitetracker/satellitetrackergui.cpp b/plugins/feature/satellitetracker/satellitetrackergui.cpp index 80d236f84..a3d9e9f34 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.cpp +++ b/plugins/feature/satellitetracker/satellitetrackergui.cpp @@ -1115,6 +1115,7 @@ void SatelliteTrackerGUI::updateTable(SatelliteState *satState) if (matches.size() == 0) { // Add a new row + ui->satTable->setSortingEnabled(false); int row = ui->satTable->rowCount(); ui->satTable->setRowCount(row + 1); for (int i = 0; i < SAT_COL_COLUMNS; i++) @@ -1128,6 +1129,7 @@ void SatelliteTrackerGUI::updateTable(SatelliteState *satState) items[i]->setToolTip(ui->satTable->horizontalHeaderItem(i)->toolTip()); ui->satTable->setItem(row, i, items[i]); } + ui->satTable->setSortingEnabled(true); // Static columns items[SAT_COL_NAME]->setText(satState->m_name); if (m_satellites.contains(satState->m_name))