mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 01:52:05 -05:00
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:
parent
4bad091a3d
commit
727bf12c75
10
devsetup.cpp
10
devsetup.cpp
@ -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
|
||||
|
@ -24,6 +24,7 @@ public:
|
||||
bool m_restartSoundIn;
|
||||
bool m_restartSoundOut;
|
||||
bool m_pskReporter;
|
||||
bool m_firstCall;
|
||||
|
||||
QString m_myCall;
|
||||
QString m_myGrid;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------- MainWindow
|
||||
//-------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
Loading…
Reference in New Issue
Block a user