DBViewer: fixing previous commit for very large databases (where we don't want to regenerate map if we don't show it)

This commit is contained in:
matlabbe
2017-07-12 21:39:51 -04:00
parent c833af1ae6
commit 19abbe0dbd
3 changed files with 9 additions and 4 deletions

View File

@@ -1361,7 +1361,6 @@ void GraphViewer::contextMenuEvent(QContextMenuEvent * event)
{
aShowHideGtGraph = menu.addAction(tr("Show ground truth graph"));
}
aShowHideGridMap->setEnabled(!_gridMap->pixmap().isNull());
aShowHideGraph->setEnabled(_nodeItems.size());
aShowHideGlobalPath->setEnabled(_globalPathLinkItems.size());
aShowHideLocalPath->setEnabled(_localPathLinkItems.size());
@@ -1626,6 +1625,10 @@ void GraphViewer::contextMenuEvent(QContextMenuEvent * event)
else if(r == aShowHideGridMap)
{
this->setGridMapVisible(!this->isGridMapVisible());
if(_gridMap->isVisible())
{
emit mapShownRequested();
}
}
else if(r == aShowHideOrigin)
{