From c9294eb9d69077b5b92eb900ef8bef64a6b7a110 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 3 May 2013 00:04:44 +0000 Subject: [PATCH] Save m_pttPort when its comboBox is changed, so that the "Test PTT" button can act accordingly. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3253 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- devsetup.cpp | 5 +++++ devsetup.h | 2 ++ mainwindow.cpp | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devsetup.cpp b/devsetup.cpp index c50641a63..b2a9bd961 100644 --- a/devsetup.cpp +++ b/devsetup.cpp @@ -495,3 +495,8 @@ void DevSetup::on_pollSpinBox_valueChanged(int n) { m_poll=n; } + +void DevSetup::on_pttComboBox_currentIndexChanged(int index) +{ + m_pttPort=index; +} diff --git a/devsetup.h b/devsetup.h index bc0659d83..9672fbae2 100644 --- a/devsetup.h +++ b/devsetup.h @@ -88,6 +88,8 @@ private slots: void on_rbData_toggled(bool checked); void on_pollSpinBox_valueChanged(int n); + void on_pttComboBox_currentIndexChanged(int index); + private: Rig* rig; void msgBox(QString t); diff --git a/mainwindow.cpp b/mainwindow.cpp index 799e027b5..983cb398d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//--------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"