1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 13:51:47 -05:00

Device UI set and Device set channel registrations unification: fixed bug

This commit is contained in:
f4exb 2019-09-10 06:14:56 +02:00
parent d1ba318c45
commit 410a588fe0
2 changed files with 2 additions and 10 deletions

View File

@ -318,15 +318,8 @@ void DeviceUISet::saveTxChannelSettings(Preset *preset)
void DeviceUISet::renameChannelInstances() void DeviceUISet::renameChannelInstances()
{ {
int mimoCount = 0; for (int i = 0; i < m_channelInstanceRegistrations.count(); i++) {
m_channelInstanceRegistrations[i].m_gui->setName(QString("%1:%2").arg(m_channelInstanceRegistrations[i].m_channelName).arg(i));
for(int i = 0; i < m_channelInstanceRegistrations.count(); i++)
{
if (m_channelInstanceTypes[i] == 2)
{
m_channelInstanceRegistrations[i].m_gui->setName(QString("%1:%2").arg(m_channelInstanceRegistrations[i].m_channelName).arg(i));
mimoCount++;
}
} }
} }

View File

@ -108,7 +108,6 @@ private:
// ChannelInstanceRegistrations m_rxChannelInstanceRegistrations; // ChannelInstanceRegistrations m_rxChannelInstanceRegistrations;
// ChannelInstanceRegistrations m_txChannelInstanceRegistrations; // ChannelInstanceRegistrations m_txChannelInstanceRegistrations;
ChannelInstanceRegistrations m_channelInstanceRegistrations; ChannelInstanceRegistrations m_channelInstanceRegistrations;
QList<int> m_channelInstanceTypes;
int m_deviceTabIndex; int m_deviceTabIndex;
int m_nbAvailableRxChannels; //!< Number of Rx channels available for selection int m_nbAvailableRxChannels; //!< Number of Rx channels available for selection
int m_nbAvailableTxChannels; //!< Number of Tx channels available for selection int m_nbAvailableTxChannels; //!< Number of Tx channels available for selection