Browse Source

Check the proper place to see if a saved video source is no longer available.

QGC4.4
Gus Grubba 6 years ago
parent
commit
17260d9993
  1. 2
      src/Settings/VideoSettings.cc

2
src/Settings/VideoSettings.cc

@ -90,7 +90,7 @@ DECLARE_SETTINGSFACT_NO_FUNC(VideoSettings, videoSource) @@ -90,7 +90,7 @@ DECLARE_SETTINGSFACT_NO_FUNC(VideoSettings, videoSource)
if (!_videoSourceFact) {
_videoSourceFact = _createSettingsFact(videoSourceName);
//-- Check for sources no longer available
if(!_nameToMetaDataMap.contains(_videoSourceFact->rawValue().toString())) {
if(!_videoSourceFact->enumStrings().contains(_videoSourceFact->rawValue().toString())) {
if (_noVideo) {
_videoSourceFact->setRawValue(videoSourceNoVideo);
} else {

Loading…
Cancel
Save