Allow COM port numbers up to COM99.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3047 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-03-13 18:47:34 +00:00
parent 4bad091a3d
commit 727bf12c75
3 changed files with 12 additions and 1 deletions

View File

@ -11,6 +11,7 @@ DevSetup::DevSetup(QWidget *parent) : QDialog(parent)
ui.setupUi(this); //setup the dialog form
m_restartSoundIn=false;
m_restartSoundOut=false;
m_firstCall=true;
}
DevSetup::~DevSetup()
@ -30,6 +31,15 @@ void DevSetup::initDlg()
char pa_device_name[128];
char pa_device_hostapi[128];
if(m_firstCall) {
QString t;
for(int i=14; i<100; i++) {
t.sprintf("COM%d",i);
ui.pttComboBox->addItem(t);
}
m_firstCall=false;
}
k=0;
#ifdef WIN32
// Needs work to compile for Linux

View File

@ -24,6 +24,7 @@ public:
bool m_restartSoundIn;
bool m_restartSoundOut;
bool m_pskReporter;
bool m_firstCall;
QString m_myCall;
QString m_myGrid;

View File

@ -1,4 +1,4 @@
//------------------------------------------------------------- MainWindow
//-------------------------------------------------------------- MainWindow
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "devsetup.h"