Make eliding the useless dummy rig model conditional on it existing

This commit is contained in:
Bill Somerville 2020-06-07 16:48:50 +01:00
parent 91d7c0124f
commit 9935ef8706
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 4 additions and 1 deletions

View File

@ -66,11 +66,14 @@ namespace
TransceiverFactory::Transceivers * rigs = reinterpret_cast<TransceiverFactory::Transceivers *> (callback_data);
// We can't use this one because it is only for testing Hamlib and
// would confuse users, possibly causing operating on the wrong frequency!
// would confuse users, possibly causing operating on the wrong
// frequency!
#ifdef RIG_MODEL_DUMMY_NOVFO
if (RIG_MODEL_DUMMY_NOVFO == caps->rig_model)
{
return 1;
}
#endif
QString key;
if (RIG_MODEL_DUMMY == caps->rig_model)