mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-06 11:39:02 -04:00
Disable table sorting when adding a new row. Fixes #1472
This commit is contained in:
parent
9e4fe95bba
commit
3f177c1007
@ -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());
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user