From 3a05273c26e3971471ce3033c914898dd61ee6a2 Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Thu, 16 May 2024 21:00:29 +0200 Subject: [PATCH] Fixed #370 - Fixed Network Rig configuration is not saved --- ui/SettingsDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/SettingsDialog.cpp b/ui/SettingsDialog.cpp index 381b748e..93d56545 100644 --- a/ui/SettingsDialog.cpp +++ b/ui/SettingsDialog.cpp @@ -484,6 +484,7 @@ void SettingsDialog::doubleClickRigProfile(QModelIndex i) ui->rigProfileNameEdit->setText(profile.profileName); ui->rigInterfaceCombo->setCurrentIndex(ui->rigInterfaceCombo->findData(profile.driver)); + ui->rigModelSelect->setCurrentIndex(ui->rigModelSelect->findData(profile.model)); int portIndex; switch ( profile.getPortType() ) @@ -503,7 +504,6 @@ void SettingsDialog::doubleClickRigProfile(QModelIndex i) } ui->rigPortTypeCombo->setCurrentIndex(portIndex); - ui->rigModelSelect->setCurrentIndex(ui->rigModelSelect->findData(profile.model)); ui->rigPortEdit->setText(profile.portPath); ui->rigHostNameEdit->setText(profile.hostname); ui->rigNetPortSpin->setValue(profile.netport); @@ -623,6 +623,8 @@ void SettingsDialog::rigPortTypeChanged(int index) { FCT_IDENTIFICATION; + qCDebug(function_parameters) << index; + switch (index) { // Serial