kopia lustrzana https://gitlab.com/eliggett/wfview
Debugging and error checking
rodzic
de5e00dfcb
commit
f710913950
19
wfmain.cpp
19
wfmain.cpp
|
@ -414,7 +414,7 @@ void wfmain::makeRig()
|
|||
connect(this, SIGNAL(sendChangeLatency(quint16)), rig, SLOT(changeLatency(quint16)));
|
||||
connect(this, SIGNAL(getRigCIV()), rig, SLOT(findRigs()));
|
||||
connect(this, SIGNAL(setRigID(unsigned char)), rig, SLOT(setRigID(unsigned char)));
|
||||
connect(rig, SIGNAL(discoveredRigID(rigCapabilities)), this, SLOT(receiveFoundRigID(rigCapabilities)),Qt::QueuedConnection);
|
||||
connect(rig, SIGNAL(discoveredRigID(rigCapabilities)), this, SLOT(receiveFoundRigID(rigCapabilities)));
|
||||
connect(rig, SIGNAL(commReady()), this, SLOT(receiveCommReady()));
|
||||
|
||||
|
||||
|
@ -969,6 +969,12 @@ void wfmain::configureVFOs()
|
|||
{
|
||||
qInfo(logSystem()) << "Running configureVFOs()";
|
||||
|
||||
if (QThread::currentThread() != QCoreApplication::instance()->thread())
|
||||
{
|
||||
qCritical(logSystem()) << "Thread is NOT the main UI thread, cannot create VFO";
|
||||
return;
|
||||
}
|
||||
|
||||
if (vfos.size()) {
|
||||
foreach (spectrumScope* vfo, vfos)
|
||||
{
|
||||
|
@ -5641,6 +5647,11 @@ void wfmain::receiveValue(cacheItem val){
|
|||
{
|
||||
if (vfos.size()>1)
|
||||
{
|
||||
if (QThread::currentThread() != QCoreApplication::instance()->thread())
|
||||
{
|
||||
qCritical(logSystem()) << "Thread is NOT the main UI thread, cannot hide/unhide VFO";
|
||||
} else {
|
||||
|
||||
// This tells us whether we are receiving main or sub data
|
||||
subScope = val.value.value<bool>();
|
||||
if (!subScope && !vfos[0]->isVisible()) {
|
||||
|
@ -5659,12 +5670,17 @@ void wfmain::receiveValue(cacheItem val){
|
|||
vfos[1]->selected(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case funcScopeSingleDual:
|
||||
{
|
||||
if (vfos.size()>1)
|
||||
{
|
||||
if (QThread::currentThread() != QCoreApplication::instance()->thread())
|
||||
{
|
||||
qCritical(logSystem()) << "Thread is NOT the main UI thread, cannot hide/unhide VFO";
|
||||
} else {
|
||||
// This tells us whether we are receiving single or dual scopes
|
||||
ui->scopeDualBtn->setChecked(val.value.value<bool>());
|
||||
if (val.value.value<bool>()) {
|
||||
|
@ -5687,6 +5703,7 @@ void wfmain::receiveValue(cacheItem val){
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case funcScopeMainMode:
|
||||
|
|
Ładowanie…
Reference in New Issue