mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -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
							
								
									f7cc3248b6
								
							
						
					
					
						commit
						2b1fd7dbce
					
				
							
								
								
									
										10
									
								
								devsetup.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								devsetup.cpp
									
									
									
									
									
								
							@ -11,6 +11,7 @@ DevSetup::DevSetup(QWidget *parent) :	QDialog(parent)
 | 
				
			|||||||
  ui.setupUi(this);	                              //setup the dialog form
 | 
					  ui.setupUi(this);	                              //setup the dialog form
 | 
				
			||||||
  m_restartSoundIn=false;
 | 
					  m_restartSoundIn=false;
 | 
				
			||||||
  m_restartSoundOut=false;
 | 
					  m_restartSoundOut=false;
 | 
				
			||||||
 | 
					  m_firstCall=true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DevSetup::~DevSetup()
 | 
					DevSetup::~DevSetup()
 | 
				
			||||||
@ -30,6 +31,15 @@ void DevSetup::initDlg()
 | 
				
			|||||||
  char pa_device_name[128];
 | 
					  char pa_device_name[128];
 | 
				
			||||||
  char pa_device_hostapi[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;
 | 
					  k=0;
 | 
				
			||||||
#ifdef WIN32
 | 
					#ifdef WIN32
 | 
				
			||||||
// Needs work to compile for Linux
 | 
					// Needs work to compile for Linux
 | 
				
			||||||
 | 
				
			|||||||
@ -24,6 +24,7 @@ public:
 | 
				
			|||||||
  bool    m_restartSoundIn;
 | 
					  bool    m_restartSoundIn;
 | 
				
			||||||
  bool    m_restartSoundOut;
 | 
					  bool    m_restartSoundOut;
 | 
				
			||||||
  bool    m_pskReporter;
 | 
					  bool    m_pskReporter;
 | 
				
			||||||
 | 
					  bool    m_firstCall;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  QString m_myCall;
 | 
					  QString m_myCall;
 | 
				
			||||||
  QString m_myGrid;
 | 
					  QString m_myGrid;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
//------------------------------------------------------------- MainWindow
 | 
					//-------------------------------------------------------------- MainWindow
 | 
				
			||||||
#include "mainwindow.h"
 | 
					#include "mainwindow.h"
 | 
				
			||||||
#include "ui_mainwindow.h"
 | 
					#include "ui_mainwindow.h"
 | 
				
			||||||
#include "devsetup.h"
 | 
					#include "devsetup.h"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user