From 5a5deef879e31828d678d12e067f2ac767a68fa5 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 15 Jul 2017 11:40:00 -0700 Subject: [PATCH] Correct creation of MAVLinkDecoder --- src/ui/MainWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index d72e20438..19c006ea3 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -296,7 +296,7 @@ QString MainWindow::_getWindowGeometryKey() #ifndef __mobile__ MAVLinkDecoder* MainWindow::_mavLinkDecoderInstance(void) { - if (_mavlinkDecoder) { + if (!_mavlinkDecoder) { _mavlinkDecoder = new MAVLinkDecoder(qgcApp()->toolbox()->mavlinkProtocol()); connect(_mavlinkDecoder, &MAVLinkDecoder::valueChanged, this, &MainWindow::valueChanged); } -- 2.22.0