diff --git a/src/ui/QGCUASFileView.cc b/src/ui/QGCUASFileView.cc index e5dad5a70bb32ec992018c390d0cd8125c911126..13859c03425e31411404dc5c69730062fca7cbc8 100644 --- a/src/ui/QGCUASFileView.cc +++ b/src/ui/QGCUASFileView.cc @@ -198,7 +198,7 @@ void QGCUASFileView::_commandComplete(void) _currentCommand = commandNone; _setAllButtonsEnabled(true); statusText = "Download complete"; - } else if (_currentCommand == commandDownload) { + } else if (_currentCommand == commandUpload) { _currentCommand = commandNone; _setAllButtonsEnabled(true); statusText = "Upload complete";