From dc17919d8fac40363fd27d4a57a26bfdae3bda46 Mon Sep 17 00:00:00 2001 From: "Edson W. R. Pereira" Date: Tue, 23 Apr 2013 19:16:50 +0000 Subject: [PATCH] Fixed a SIGSEGV bug at GUI initialization when CAT is enabled. The rig object was being called in on_bandComboBox_currentIndexChanged() before the rig object was instantiated. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3202 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 6c6bc131d..36c318dd3 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -199,7 +199,7 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QWidget *parent) : #endif mem_jt9 = shdmem; - readSettings(); //Restore user's setup params + readSettings(); //Restore user's setup params if(m_dFreq.length()<=1) { m_dFreq.clear(); for(int i=0; i<16; i++) { @@ -517,6 +517,7 @@ void MainWindow::readSettings() if(m_ndepth==1) ui->actionQuickDecode->setChecked(true); if(m_ndepth==2) ui->actionMediumDecode->setChecked(true); if(m_ndepth==3) ui->actionDeepestDecode->setChecked(true); + statusChanged(); } @@ -2439,6 +2440,9 @@ void MainWindow::on_bandComboBox_currentIndexChanged(int index) m_repeatMsg=0; m_secBandChanged=QDateTime::currentMSecsSinceEpoch()/1000; if(m_catEnabled) { + if(!m_bRigOpen) { + rigOpen(); + } rig->setFreq(MHz(m_dialFreq)); } }