mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Removed ordering of channels and features in presets. Fixes #1051
This commit is contained in:
parent
2299c09f36
commit
9f39a1ab66
@ -216,9 +216,6 @@ void DeviceSet::saveRxChannelSettings(Preset *preset)
|
|||||||
{
|
{
|
||||||
if (preset->isSourcePreset())
|
if (preset->isSourcePreset())
|
||||||
{
|
{
|
||||||
// sort by increasing delta frequency and type
|
|
||||||
std::sort(m_channelInstanceRegistrations.begin(), m_channelInstanceRegistrations.end(), compareChannels);
|
|
||||||
|
|
||||||
for (int i = 0; i < m_channelInstanceRegistrations.count(); i++)
|
for (int i = 0; i < m_channelInstanceRegistrations.count(); i++)
|
||||||
{
|
{
|
||||||
qDebug("DeviceSet::saveChannelSettings: channel [%s] saved", qPrintable(m_channelInstanceRegistrations[i]->getURI()));
|
qDebug("DeviceSet::saveChannelSettings: channel [%s] saved", qPrintable(m_channelInstanceRegistrations[i]->getURI()));
|
||||||
@ -317,9 +314,6 @@ void DeviceSet::saveTxChannelSettings(Preset *preset)
|
|||||||
{
|
{
|
||||||
if (preset->isSinkPreset())
|
if (preset->isSinkPreset())
|
||||||
{
|
{
|
||||||
// sort by increasing delta frequency and type
|
|
||||||
std::sort(m_channelInstanceRegistrations.begin(), m_channelInstanceRegistrations.end(), compareChannels);
|
|
||||||
|
|
||||||
for (int i = 0; i < m_channelInstanceRegistrations.count(); i++)
|
for (int i = 0; i < m_channelInstanceRegistrations.count(); i++)
|
||||||
{
|
{
|
||||||
qDebug("DeviceSet::saveTxChannelSettings: channel [%s] saved", qPrintable(m_channelInstanceRegistrations[i]->getURI()));
|
qDebug("DeviceSet::saveTxChannelSettings: channel [%s] saved", qPrintable(m_channelInstanceRegistrations[i]->getURI()));
|
||||||
@ -420,9 +414,6 @@ void DeviceSet::saveMIMOChannelSettings(Preset *preset)
|
|||||||
{
|
{
|
||||||
if (preset->isMIMOPreset())
|
if (preset->isMIMOPreset())
|
||||||
{
|
{
|
||||||
// sort by increasing delta frequency and type
|
|
||||||
std::sort(m_channelInstanceRegistrations.begin(), m_channelInstanceRegistrations.end(), compareChannels);
|
|
||||||
|
|
||||||
for (int i = 0; i < m_channelInstanceRegistrations.count(); i++)
|
for (int i = 0; i < m_channelInstanceRegistrations.count(); i++)
|
||||||
{
|
{
|
||||||
qDebug("DeviceSet::saveMIMOChannelSettings: channel [%s] saved", qPrintable(m_channelInstanceRegistrations[i]->getURI()));
|
qDebug("DeviceSet::saveMIMOChannelSettings: channel [%s] saved", qPrintable(m_channelInstanceRegistrations[i]->getURI()));
|
||||||
|
@ -179,8 +179,6 @@ void FeatureSet::loadFeatureSetSettings(const FeatureSetPreset *preset, PluginAP
|
|||||||
|
|
||||||
void FeatureSet::saveFeatureSetSettings(FeatureSetPreset *preset)
|
void FeatureSet::saveFeatureSetSettings(FeatureSetPreset *preset)
|
||||||
{
|
{
|
||||||
std::sort(m_featureInstanceRegistrations.begin(), m_featureInstanceRegistrations.end(), compareFeatures);
|
|
||||||
|
|
||||||
for (int i = 0; i < m_featureInstanceRegistrations.count(); i++)
|
for (int i = 0; i < m_featureInstanceRegistrations.count(); i++)
|
||||||
{
|
{
|
||||||
qDebug("FeatureSet::saveFeatureSetSettings: saving feature [%s]", qPrintable(m_featureInstanceRegistrations[i]->getURI()));
|
qDebug("FeatureSet::saveFeatureSetSettings: saving feature [%s]", qPrintable(m_featureInstanceRegistrations[i]->getURI()));
|
||||||
|
Loading…
Reference in New Issue
Block a user