mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 17:17:47 +08:00
GraphViewer: Fixed ground truth and gps context menu option disabled even if there are there, after hiding them, saving and reopening UI
This commit is contained in:
@@ -2270,11 +2270,8 @@ void GraphViewer::contextMenuEvent(QContextMenuEvent * event)
|
|||||||
aMouseTracking->setChecked(_mouseTracking);
|
aMouseTracking->setChecked(_mouseTracking);
|
||||||
aMouseTracking->setEnabled(_viewPlane == XY);
|
aMouseTracking->setEnabled(_viewPlane == XY);
|
||||||
aShowHideGraph->setEnabled(_viewPlane == XY);
|
aShowHideGraph->setEnabled(_viewPlane == XY);
|
||||||
aShowHideGraphNodes->setEnabled(_graphRoot->isVisible());
|
|
||||||
aShowHideGlobalPath->setEnabled(_globalPathLinkItems.size());
|
aShowHideGlobalPath->setEnabled(_globalPathLinkItems.size());
|
||||||
aShowHideLocalPath->setEnabled(_localPathLinkItems.size());
|
aShowHideLocalPath->setEnabled(_localPathLinkItems.size());
|
||||||
aShowHideGtGraph->setEnabled(_gtGraphRoot->isVisible());
|
|
||||||
aShowHideGPSGraph->setEnabled(_gpsGraphRoot->isVisible());
|
|
||||||
aShowHideOdomCacheOverlay->setEnabled(_odomCacheOverlay->rect().width()>0);
|
aShowHideOdomCacheOverlay->setEnabled(_odomCacheOverlay->rect().width()>0);
|
||||||
|
|
||||||
QMenu * viewPlaneMenu = menu.addMenu("View Plane...");
|
QMenu * viewPlaneMenu = menu.addMenu("View Plane...");
|
||||||
|
|||||||
Reference in New Issue
Block a user