diff --git a/devsetup.cpp b/devsetup.cpp index 9be04d3e3..cbcc1d1de 100644 --- a/devsetup.cpp +++ b/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 diff --git a/devsetup.h b/devsetup.h index e6fd50fb9..14ffe1cad 100644 --- a/devsetup.h +++ b/devsetup.h @@ -24,6 +24,7 @@ public: bool m_restartSoundIn; bool m_restartSoundOut; bool m_pskReporter; + bool m_firstCall; QString m_myCall; QString m_myGrid; diff --git a/mainwindow.cpp b/mainwindow.cpp index a9a3c52b0..1cf152e30 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//------------------------------------------------------------- MainWindow +//-------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"