Commit 37d8faf2 authored by John Tapsell's avatar John Tapsell

Message view - only show "clear text" context menu when we are actually showing text

parent 62194a75
......@@ -87,7 +87,9 @@ void QGCMessageView::handleTextMessage(int uasid, int compId, int severity, QStr
void QGCMessageView::contextMenuEvent(QContextMenuEvent* event)
{
QMenu menu(this);
menu.addAction(clearAction);
menu.exec(event->globalPos());
if(activeUAS) {
QMenu menu(this);
menu.addAction(clearAction);
menu.exec(event->globalPos());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment